Determining the Current Version of WUA
Determine the version of Windows Update Agent (WUA) before you use it. The current version of WUA is determined by the version of the Wuaueng.dll that is running in the \System32 subdirectory of the current Windows installation. If the version of Wuaueng.dll is version 5.4.3790.1000 or a later version, WUA is installed. A version that is earlier than 5.4.3790.1000 indicates that Software Update Services (SUS) 1.0 is installed.
When a call is made to SUS 1.0 by using the WUA API, an HRESULT of WU_E_AU_LEGACYSERVER is returned.
You can also use the IWindowsUpdateAgentInfo::GetInfo method to retrieve the current file version of Wuapi.dll that is running on a computer. The IWindowsUpdateAgentInfo interface is not supported in WUA 1.0.
For more information, see Updating the Windows Update Agent.
Send comments about this topic to Microsoft
Build date: 7/7/2011
- 11/3/2011
- BriarLapin
As of this post (2011-APR), the version on Win2003 and WinXP is 7.4.7600.226
Tags: wuauserv, wuauclt, bits, windows update agent, automatic updates, wsus
- 4/12/2011
- Original-Paulie-D
As of this post (2011-APR), the version on Win2003 and WinXP is 7.4.7600.226
Tags: wuauserv, wuauclt, bits, windows update agent, automatic updates, wsus
- 4/12/2011
- Original-Paulie-D
Dim oAgentInfo, ProductVersion
Set oAgentInfo = CreateObject("Microsoft.Update.AgentInfo")
Wscript.Echo "C:\Windows\System32\wuapi.dll version: " & oAgentInfo.GetInfo("ProductVersionString")
Wscript.Echo "WUA version : " & oAgentInfo.GetInfo("ApiMajorVersion") & "." & oAgentInfo.GetInfo("ApiMinorVersion")
- 3/18/2010
- fwwfwr
OK. Here's what I came up with:
Function WuaVersion 'get current WUA version
Dim oAgentInfo, ProductVersion
On Error Resume Next
Err.Clear
Set oAgentInfo = CreateObject("Microsoft.Update.AgentInfo")
If ErrNum = 0 Then
WuaVersion = oAgentInfo.GetInfo("ProductVersionString")
Else
Wscript.Echo "Error getting WUA version."
WuaVersion = 0 'calling code can interpret 0 as an error.
End If
On Error Goto 0
End Function
- 11/6/2008
- BryanLockwood
- 11/11/2008
- rafevolutioner
- 11/5/2008
- BryanLockwood