There are 3rd party tools like psexec (sysinternals.com) that will allow you to run as local system.
You could shell out to execute it from within you PERL App. - Aaron -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Felton Sent: Wednesday, December 08, 2004 12:47 PM To: Perl-Win32 Subject: RE: run a process as System account Hello, My first thought was to use the 'runas' command: runas /user:MyMachineName\SYSYEM cmd However this prompts for a password. After poking around google, and consulting the resident Windows guru, the SYSTEM user does not have a password. And, according to the guru, the only way to run as SYSTEM (without making a service) is to use the 'at' command. To echo previous suggestions I would suggest running the at command with now+1 minute to open a command prompt. Then just leave this command prompt around all the time and run perl scripts from inside of it. Good Luck Erik Felton -----Original Message----- From: Paul Sobey [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 4:37 AM To: Marie-eve URVOY Cc: Perl-Win32 Subject: RE: run a process as System account Not that I'm aware of. You could easily schedule the job to run in the v. near future from your parent script, and maybe write a lockfile that your child could remove when done, or use a loop with WMI and Win32_Process to wait for your child to appear and disappear. Not very pretty but it's the best I can think of at the moment. Maybe MSDN will tell you more... Sorry I couldn't be more help! Paul -----Original Message----- From: Marie-eve URVOY [mailto:[EMAIL PROTECTED] Sent: 08 December 2004 09:34 To: Paul Sobey Cc: Perl-Win32 Subject: RE: run a process as System account I think I can't use 'at' command because I have to wait for the result of my command. And further more the command I want to execute has to be executed immediatly. Is it possible to use LogonAsUser and CreateProcessAsUser for System account? Marie-Eve (sorry for my poor english ... ) --- Paul Sobey <[EMAIL PROTECTED]> a écrit : > Schedule with an at job? If it runs under the > context of the schedule service it'll be the system > account. Use /interactive if you need to see the > console. > > Paul > > > -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Marie-eve URVOY > Sent: 08 December 2004 08:51 > To: [EMAIL PROTECTED] > Subject: run a process as System account > > Hi, > I'd like to know if it is possible to run a process > from a perl script as System account on Windows XP > (without creating a service). My script is lauched > by > a user with priviledge. > I have been searching the web by didn't find any > answer. > Thanks. > Marie-Eve ***************************************************************** Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the information is furnished to the recipients with no warranty as to the completeness and accuracy of its contents and on condition that any errors or omissions shall not be made the basis for any claim, demand or cause for action. ***************************************************************** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs