while running this script, i get this error : "Couldn't set the attributes: at C:\scripts\perl\changepass.pl line 19." can anyone help. i am trying to change local admin password on remote machines. Or does anyone know of a better way to do this?
thnx.
Ray
# 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: $!";