PowerShell: Find all users in a specific OU
PowerShell: Find all users in a specific OU
One of my customers asked for an overview of the UPNs of all users in a specific OU. Having become fairly familiar with the Get-ADUser command, I decided to see if I couldn’t make it do this, too.
I knew that I would need to filter the results of the command on OU, and found that the -filter parameter, combined with -SearchBasewould give me what I wanted. To this end, I ran the following…
View On WordPress













