Skip to content

Instantly share code, notes, and snippets.

@ZJPat
Created August 4, 2016 20:54
Show Gist options
  • Save ZJPat/a38d68cafdefbede3d4e4a391608e515 to your computer and use it in GitHub Desktop.
Save ZJPat/a38d68cafdefbede3d4e4a391608e515 to your computer and use it in GitHub Desktop.
Get-ADComputer -Filter {(OperatingSystem -Like "Windows *Server*")-and (Enabled -eq "True")} -Property * | Select Name,OperatingSystem,OperatingSystemServicePack,IPv4Address | export-csv Servers.csv -notypeinformation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment