Skip to content

Instantly share code, notes, and snippets.

@flickerfly
Created March 11, 2013 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flickerfly/5137515 to your computer and use it in GitHub Desktop.
Save flickerfly/5137515 to your computer and use it in GitHub Desktop.
Iterate over all domain member servers that aren't domain controllers
#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