Script for deleting a computer in WSUS
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | out-null
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer()
$pc = $wsus.GetComputerTargetByName("nompc")
if ($pc) { $pc.Delete() }
0 Comments