I have a working powershell:
Get-AdComputer -Filter * -Searchbase "OU=ouname, DC=domainname,DC=COM" | Select Name
The output is all computers in the OU, ouname.
I am looking for a way to add to the script. I want to add more OU's, so the output contains all computers in active computer OU's.
Once i get this, I'm looking to get this to excel, but i think i have that part...Anyone already do this?
Attached is alittle snip of AD structure...
looking to add the OU's, 'CAR' AND CHP-WINDOWS 7 COMPUTERS'