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
| Attachment | Size |
|---|---|
| ad perl script to deactivate-activate users.txt | 2.73 KB |
- Printer-friendly version
- Login or register to post comments

Recent comments
39 weeks 10 hours ago
1 year 1 week ago
1 year 8 weeks ago
11 weeks 4 days ago
1 year 15 weeks ago
1 year 18 weeks ago
1 year 24 weeks ago
1 year 25 weeks ago
1 year 38 weeks ago
1 year 51 weeks ago