Trying to logon locally.....Why won't this work?  Doesn't logon and I get the Fatal Error message every time.....
 
user exists, in local administrators group, correct password....
 
 
 
use Win32;
use Win32::AdminMisc;
 
$Admin = "superman"; # Put here the name of an administrator
$Passw = "superman"; # Put here his password
 
if(! Win32::AdminMisc::LogonAsUser( "",$Admin,$Passw))
{
die "Fatal Error - Tell the Administrator\n";
}

Reply via email to