lianne143
asked on
Syntax to delete duplicate user accounts from active directory
Hi
I have 600 user accounts (within OU14, OU15 ,OU16, OU17) that i have extracted in a notepad. I need to delete all these user accounts from our active directory which are not required any more. Is there any script or batch file or command that i can use to delete all these user accounts.
If so please post me the syntax to safetly delete them from the AD.
My Ad structure is like this :
Domain.local
-Students
-OU14
-OU15
-OU16
-OU17
Thanks and any help would be great.
I have 600 user accounts (within OU14, OU15 ,OU16, OU17) that i have extracted in a notepad. I need to delete all these user accounts from our active directory which are not required any more. Is there any script or batch file or command that i can use to delete all these user accounts.
If so please post me the syntax to safetly delete them from the AD.
My Ad structure is like this :
Domain.local
-Students
-OU14
-OU15
-OU16
-OU17
Thanks and any help would be great.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So would like to delete only what i have extracted in the notepad , so each notepad contains respective users to be deleted.
Notepad 1- OU14
Notepad 1- OU15
Notepad 1- OU16
Notepad 1- OU17
Please provide the exact syntax. I can try with few users on the notepad and , when it successfully deletes i can add mode users in to the note pad to be deleted.
Thanks