Reset multiple NT domain passwords

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Reset multiple NT domain passwords

Post by Marcus Tettmar » Tue Nov 13, 2001 12:00 am

Contributed By: Paul Graham [email protected]
Submitted On: 13/11/01

' This is the NT Password reset section


' Get initial variables


Inp>usersloc,Please locate the text file containing usernames


' Open User Manager. Customise this section to
' Open User Manager on your own machine


Label>ntpassword
press lwinkey
Wait>0.2
Sen>x
WWO>User Manager - RTA


' Initialise Counter


Let>ntcount=1


' Beginning of password reset loop


Label>ntstart
RLN>usersloc,ntcount,user
If>user=##EOF##,ntend
Wait>1
Sen>user
Wait>1


' These Tabs stop the selection of multiple users


Press Tab
Wait>0.5
Press Tab
Wait>0.5
Press enter
WWO>User Properties
WRD>0
Press Tab
Wait>0.1
Press Tab
Wait>0.1
Sen>password
Wait>0.1
Press Tab
Wait>0.1
Sen>password
Wait>0.1
Press Tab


' This space unchecks the password change at
' next login option


Wait>0.1
Sen>
Wait>0.1
Press enter
Let>ntcount=ntcount+1
Wait>0.5
WCC>500
Goto>ntstart


' End of password reset loop


' Close User Manager


Label>ntend
Press Alt
Press F4
Release Alt
Let ntcount=ntcount-2
MDL>Finished resetting %ntcount% passwords

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts