Created
August 1, 2023 19:00
-
-
Save ScriptingPro/59c9f33102958a2a2b70fe341586aa5b to your computer and use it in GitHub Desktop.
Check KMS Activation Server ports
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
# finds kms servers from DNS and checks if the port is open | |
Resolve-DnsName "_vlmcs._tcp.$([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().Name)" -Type all | %{Test-NetConnection -ComputerName $_.NameTarget -Port 1688} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment