Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: su on winnt

by c-era (Curate)
on Nov 09, 2001 at 18:54 UTC ( #124374=note: print w/replies, xml ) Need Help??


in reply to su on winnt

Use the Win32::AdminMisc module available from www.roth.net.

Here's how to use ppm

PPM> set repository roth http://www.roth.net/perl/packages PPM> install Win32-AdminMisc
As long as the program is runing as the system user, you can use this piece of code to change the user.
Win32::AdminMisc::LogonAsUser($domain,$username,$password);
I hope this helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://124374]
help
Chatterbox?
[Corion]: Meh, first round of escalations for me not wanting to fix in production what a project has mismanaged. Now another project, which eats up all the resources until end of this year wants to take that task and put it on my list of things as well.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-08-17 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (287 votes). Check out past polls.

    Notices?