Pages

Thursday, July 9, 2015

Export list of computers from an OU to a .csv file

get-adcomputer -filter * -searchbase “OU=Test,DC=domain,DC=local" | select name | export-csv <INSERT PATH TO .CSV FILE>

No comments:

Post a Comment