Month: January 2014

Supply , installation and support

Servers pending reboots via WSUS and email

We have been working on a WSUS project , and its coming to a close. The client required information on which servers required rebooting to complete a patch. We came up with this script   $csvfile=’drive WSUS Scriptsrebootpending.csv’ Try{ [void][reflection.assembly]::LoadWithPartialName(‘Microsoft.UpdateServices.Administration’) $wsus=[Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer() $computerScope = new-object Microsoft.UpdateServices.Administration.ComputerTargetScope $computerScope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::InstalledPendingReboot $wsus.GetComputerTargets($computerScope) | Select FullDomainName,IPAddress,RequestedTargetGroupName | Export-Csv $csvfile…
Read more