Author Posts

September 15, 2015 at 5:23 am

Hi. I need to select a PCs with Get-ADComputer, whose names beginning with N and W, so I tried this:
Get-ADComputer -Filter {Name -like 'w*' or Name -like 'n*'}
But I got syntax error. How exactly this command should be?

September 15, 2015 at 5:27 am

The OR operator is -or. It seems that you've typed "or" without the dash.

September 15, 2015 at 5:33 am

Gods... such a newbie mistake. Thanks, Don!