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
Technology Tips and News
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..
$ou = 'OU=Windows7,DC=domain,DC=com','OU=Windows10,DC=domain,DC=com' $ou | ForEach { Get-ADComputer -Filter * -SearchBase $_ }