Last active
October 5, 2015 10:36
-
-
Save rycuda/792bf01f0a09954cd552 to your computer and use it in GitHub Desktop.
Powershell to check that all computers in AD are registered in WSUS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires PoshWSUS