# Ray Espinoza # ChangePass.pl # This script will attempt to change the local admin password on a machine. ################################################################################### #!D:\perl\bin -w use Win32::AdminMisc; $Server = "\\\\muskrat"; $UserName = "Administrator"; $UserFullName = "Administrator"; $Password = "testing"; $PasswordAge = 0; $Privilege = "USER_PRIV_USER"; $HomeDir = "C:/winnt"; $Comment = 0; $Flags = 0; $ScriptPath = "C:/scripts/perl/changepass.pl"; Win32::AdminMisc::UserSetAttributes( $Server, $UserName, $UserFullName, $Password, $PasswordAge, $Privilege, $HomeDir, $Comment, $Flags, $ScriptPath ) || die "Couldn't set the attributes: $!";