Hmmm, Win32::AdminMisc might be what you are looking for. All funktions return TRUE on success IIRC.
Doesn't this require certain (activated) privileges, though. E.g. SE_TCB_NAME and the like? Especially for:
Well, since he wrote to [EMAIL PROTECTED] I assumed he _is_ an admin. Also he didn't say that he need to do this as a "normal" user, so I gave a best guess...
if( Win32::AdminMisc::LogonAsUser( $Domain, $User, Password ) )
Once I saw some code not requiring this - I believe it was based on WMI or ADSI, but I cannot find it anymore. Will post this as soon as I find it.
Mark Anderson posted some code in this thread which doesn't require admin privileges.
Best regards, Oliver
Greetings from germany
Alex
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
