Determining the current version of Windows Update Agent (WUA)

On Windows 7 SP1, after having installed the lastest version of the Windows Update Agent, 7.6.7600.256, from the online Microsoft Update site, I can no longer use the recommended way on MSDN to determine the current version.

When I do:

[version](New-Object -ComObject Microsoft.Update.AgentInfo).            
GetInfo('ProductVersionString')            

I get the following:
wrong WUA version
Why?Because the COM object and

IWindowsUpdateAgentInfo::GetInfo method retrieve the current file version of Wuapi.dll

Solution? Query the WUA engine file.

[version]((Get-Item C:\Windows\system32\wuaueng.dll).            
VersionInfo.FileVersion -split "\s")[0]

WUA correct version

Weird, isn’t it? According to the KB949104, about How to get the latest version of the Windows Update Agent? I’m supposed to have a wuapi.dll version 7.6.7600.256 in C:\windows\system32.

Unfortunately, there isn’t any standalone package of the WUA version 7.6.7600.256 provided by Microsoft for the moment.

I may have figured out why 🙂
The file wuapi.dll is contained in the WUA component named ‘Aux’, whereas the wuaueng.dll is located in the WUA component named ‘Core’.

Get-ChildItem c:\wuapi.dll -Force -Recurse -ea 0 |             
    ForEach-Object -Process {            
        $_.FullName ;            
        $_.VersionInfo.FileVersion            
        '-'*119            
    }            

recurse wuapi.dll version

When I use the dism /online /Get-Packages command, I can see that the ‘Aux’ WUA selfupdate package has been ‘Staged’ (for the moment?).
WUA 3 components

Advertisements

One thought on “Determining the current version of Windows Update Agent (WUA)

  1. Thanks for taking the time to post this. I came across this via a Google search and it gave me exactly what I was looking for: trying to see what version of the WUA I had to see if I could use the registry method of enabling Microsoft Update support via a GPO. In short, no, but there is always the scripting approach.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s