Created
January 15, 2019 12:54
-
-
Save spy86/53385a836da9084223b0d4561cc6b343 to your computer and use it in GitHub Desktop.
Check if server/computer are joined to domain
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
if ($env:computername -eq $env:userdomain) { echo " no AD domain" } | |
else { echo "must be in AD"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment