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: changing passwords
by LD2 (Curate) on Aug 11, 2001 at 00:02 UTC | |
|
Re: changing passwords
by OzzyOsbourne (Chaplain) on Aug 10, 2001 at 22:29 UTC | |
|
Re: changing passwords
by joefission (Monk) on Aug 10, 2001 at 22:55 UTC |