Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get-adcomputer servers only

Get-ADComputer -Filter {OperatingSystem -like "*windows*server*"} -Properties * | sort DNSHostname | select DNSHostName, OperatingSystem | Export-Csv -Path "$homeDesktopADServers.csv"
Source by www.markou.me #
 
PREVIOUS NEXT
Tagged: #servers
ADD COMMENT
Topic
Name
4+5 =