Group,
I have the following code:
$Process = "c:\\web\\cgi-bin\\PhoneListUpdate\\ole_add1 $id";
$Result = Win32::AdminMisc::LogonAsUser( $Domain,
$User,
$Password,
LOGON32_LOGON_INTERACTIVE );
if( $Result ) {
$LogonUser = Win32::AdminMisc::GetLogonName();
print "Successfully logged on as $LogonUser.<BR> Adding Name
now!<BR>";
$Result = Win32::AdminMisc::CreateProcessAsUser($Process);
if( $Result ){
print "Successful! The new processes PID is $Result.<BR>";
} else {
print "Failed.\n\tError: ", Error(), "<BR>";
}
} else {
print "Failed to logon.\n\tError: ", Error(), "<BR>";
}
The logon is successful but I get the following error after logon
Failed. Error: Incorrect function.
I am not sure what I am doing wrong. Please advise - thanks
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs