Mark Updates on WSUS as optional with Powershell

Hallo zusammen

Der eine oder andere hat wohl das Windows Management Framework 3.0 auf dem WSUS freigegeben. Leider erst ein paar Tage später macht das Exchange Team Blog darauf aufmerksam, dass dies unter Exchange 2007 / 2010 noch nicht unterstützt ist.

Per zufall bin ich über den folgenden Artikel gestolpert, hier wird gezeigt, wie man auch in WSUS Updates als optional kennzeichnen kann: http://blogs.technet.com/b/rmilne/archive/2012/12/18/exchange-2010-powershell-3-0-and-wsus.aspx

# Load up the required .NET assembly
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
#  Connect to the local WSUS instance
$Wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer()

#$Wsus.SearchUpdates('Windows Management Framework 3.0 for Windows Server 2008 R2 for x64-based Systems (KB2506143)')
$Update = $wsus.SearchUpdates('Windows Management Framework 3.0 for Windows Server 2008 R2 for x64-based Systems (KB2506143)')
$Update

Nun markiere ich das Update für die Gruppe "Server" als optional.

$wsus.GetComputerTargetGroups()
$Group =$wsus.GetComputerTargetGroups() | where {$_.Name -eq "Server"}

$Update[0].ApproveForOptionalInstall($Group)

Und so siehts auf dem Server aus

In der WSUS Konsole erkennt man jedoch nicht, ob ein Update als Optional gekennzeichnet ist.

 

Grüsse
Andres Bohren