I have found that running some applications, rather ordinary applications, as an Admin using Adminmisc gives this "Microsoft Visual C++ Runtime Library" error. Others, like Server Manager, User Manager, etc..works. All the necessary security policies have been set. Has anybody come across this, and how can I solve this?
 
Here's a snipit:
 
use Win32::AdminMisc;
$result=Win32::AdminMisc::LogonAsUser('domain','userid','password',LOGON32_LOGON_INTERACTIVE);
if ($result){
     $process = "c:\\program files\\textpad 4\\textpad.exe";
     $LogonUser = Win32::AdminMisc::GetLogonName();
     Win32::AdminMisc::CreateProcessAsUser($process);
}else{
 print "\nFailed to logon.\n";
}

thx
Ivano


Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com

Reply via email to