Skip to content

Instantly share code, notes, and snippets.

@rycuda
Last active October 5, 2015 10:36
Show Gist options
  • Save rycuda/792bf01f0a09954cd552 to your computer and use it in GitHub Desktop.
Save rycuda/792bf01f0a09954cd552 to your computer and use it in GitHub Desktop.
Powershell to check that all computers in AD are registered in WSUS
$WSUSServer = "server name"
$WSUSPort = 8530
Connect-PoshWSUSServer $WSUSServer -port $WSUSPort
$WSUSClients = (Get-PoshWSUSClient).fulldomainname
(Get-ADComputer -Filter *).dnshostname | ForEach-Object {if (-not ($WSUSClients -contains $_)) {$_}} | sort
@rycuda
Copy link
Author

rycuda commented Oct 5, 2015

Requires PoshWSUS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment