Created
March 11, 2013 20:37
-
-
Save flickerfly/5137515 to your computer and use it in GitHub Desktop.
Iterate over all domain member servers that aren't domain controllers
This file contains 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
#Select Servers that are not Domain Controllers | |
$computers = Get-ADComputer -Filter { operatingsystem -like "*server*" -and Enabled -eq "True" } | |
Foreach($computer in $computers) | |
{ | |
} #end foreach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment