ActiveDirectory User Disable/Enable Script

use it like this: disable.pl --server domaincontroller.example.com --bindDN cn=privileged_user,dc=example,dc=com --password --searchbase dc=example,dc=com --infile

--server: one of your domain controllers
--bindDN: the DN of an account with appropriate privileges (e.g. cn=administrator,ou=built-in,dc=example,dc=com
--password: above accounts password
--searchbase: where the search should start, e.g. dc=example,dc=com, or ou=students,dc=example,dc=com
--infile: file with the list of users to be disabled

AttachmentSize
ad perl script to deactivate-activate users.txt2.73 KB

Syndicate

Syndicate content

Recent comments