Answers for "Delete all users in OU"

0

Delete all users in OU

#Remove all AD users from a specific OU.

Get-ADUser -SearchBase "OU=LabUsers,DC=labdomain,DC=local" -Filter * | Remove-ADUser -Confirm:$false -Verbose
Posted by: Guest on March-31-2021

Browse Popular Code Answers by Language