Change domain passwords
Top  Previous  Next


This script generates and changes password for all members of the group students. The [Data] section is filled by the Data.Get.AD command, passwords are created with the password generator, Data.Show displays a preview dialog and passwords are changed with AD.Account.SetPassword.

WARNING! It is possible to change passwords for ALL users, including Administrators. If you do not exclude the Administrator user name from the [Data]-section, make sure that you remember your password, or else you will be locked out!


[Settings_Begin]
//Password Generator Settings
Generator.Password.DestCol=2
Generator.Password.Special.Vowels=aeiouy
Generator.Password.Special.Consonants=bcdfghjklmnpqrstvwxz
Generator.Password.Special.Numbers=0123456789
Generator.Password.Special.Special=-+#¤%"!%
Generator.Password.Special.Format=rnBababas

BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
BatchSettings.MarkersAutoRemove=Yes

SET ADDomainPath=dc=com/dc=acme/dc=D2
SET ADGroupPath=%ADDomainPath%/ou=students/cn=students

SET ADOUPath=%col3%
[Settings_End]

[Machines_Begin]
\\EDU8      NT PDC    
[Machines_End]

[Init_Batch_Begin]
Data.Get.AD Group,%ADGroupPath%, User, Yes, CN§1§ADpath§3§   
Data.Passwords.Generate Special   
Data.Show   
[Init_Batch_End]

[Batch_Begin]
Data.Loop   
 AD.Account.SetPassword %ADOUPath%, %col2%
Data.EndLoop   
[Batch_End]

[Data_Begin]
[Data_End]


Tip

Print password sheets by using the print data section function.