Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Delete #users #OU
ADD COMMENT
Topic
Name
8+9 =