0

I'm trying to automate WSUS with powershell, however to do this I need to know what version is installed. How do I find this information?

The server is using Windows Server 2012 R2 Standard. Thanks.

x3nr0s
  • 279
  • 2
  • 5
  • 11

3 Answers3

1

You can use the following code to get the version of WSUS in PowerShell:

[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer(“dc1”,$False)
$wsus.Version
Johan de Haan
  • 391
  • 2
  • 7
0

Or you can use PowerShell:

get-itemproperty -Path 'HKLM:\SOFTWARE\Microsoft\Update Services\Server\Setup\' -Name IISPreviousInstallRevision
bjoster
  • 4,423
  • 5
  • 22
  • 32
0

WSUS was initially a separate software which you had to download and install, but since Windows Server 2008 R2 it has been included in the OS.

Windows Server 2012 R2 runs WSUS 4.0.

Source: https://en.wikipedia.org/wiki/Windows_Server_Update_Services

Massimo
  • 68,714
  • 56
  • 196
  • 319