-start-
>   Sheldon Fuchs <[EMAIL PROTECTED]>
>at    11/28/2000 10:11 AM

>I have tried this using both my own domain account, as well as the local
>admin for the machine, and still get the error printed, I am using 2k, 
not
>sure if this will make the difference or not. Please, any help would be
>appreciated. Here's the code:

>if ( ! Win32::AdminMisc::LogonAsUser($Domain, $User, $Password)){
> print "Could not logon\n";
>}
>else {print "Logon was good\n";}

I haven't fully tested this on Win2K, however I have used this without 
fault on NT4.

The account the script is *executing* under must have the following 
privileges set *locally* on the machine itself.

SeTcbPrivilege 
SeChangeNotify
SeAssignPrimaryToken 

Grant Hopwood.
Valero Energy Corp.
(210)370-2380
PGP Public Key: Ldap://certserver.pgp.com
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to