Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Running Win32 binary as arbitrary user -- in Perlby flyingmoose (Priest) |
on Apr 29, 2004 at 15:01 UTC ( [id://349153]=note: print w/replies, xml ) | Need Help?? |
There is a catch-22 here, of course. You need to have 'act as part of the operating system' rights for the current user to be able to call LogonUser ... hence, you need to be an Administrator (or a system service) to impersonate the Administrator :)
All I want to do is start/stop a service while not running as Administrator, so I guess I will need to use RunAs after all -- anybody know the Windows equivalent of Expect.pm ???
In Section
Seekers of Perl Wisdom
|
|