Get-adcomputer filtering options

Hello,
is it possible to filter-out 2 OUs before pipeline?  (searchbase only accept 1 OU).

How can I retrieve info what properties can be used in -filter parameter? 
Regards..


  • Edited by Mekac 1 hour 6 minutes ago
March 24th, 2015 2:35am

$ou = 'OU=Windows7,DC=domain,DC=com','OU=Windows10,DC=domain,DC=com'

$ou | ForEach { Get-ADComputer -Filter * -SearchBase $_ }

Free Windows Admin Tool Kit Click here and download it now
March 24th, 2015 3:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics