RayRay459 has asked for the wisdom of the Perl Monks concerning the following question:
# Ray Espinoza # ChangePass.pl # This script will attempt to change the local admin password on a mac +hine. ###################################################################### +############# #!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, $S +criptPath ) || die "Couldn't set the attributes: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setting password on remote machine
by joefission (Monk) on Aug 10, 2001 at 04:22 UTC | |
by tadman (Prior) on Aug 10, 2001 at 04:54 UTC | |
by chromatic (Archbishop) on Aug 10, 2001 at 05:19 UTC |