From: Steven D. P. <st...@do...> - 2003-11-11 14:57:49
|
the main use for this, is to distribute applications after the inital roll out. =20 My first attempt was to create an asp page that created the remote process on the clients machine running the mapznrun program under its context, but microsoft has put a stop to that by not allowing the spawned process to interact with the desktop. =20 Second was to get it to produce an AT job (which does allow the job to interact with the desktop) but relies heaverly on the times being Identical (issue in its own right) plus the job would have to be scheduled upto 60 secs in the future (problem for users) =20 Third is to use the mapznrun in its native enviroment, but this can also cause problems. i.e. if a user ctrl breaks while the todo.pl is running they are sitting there with a admin logon in front of them (NOT GOOD) =20 you can not script the RUNAS command as you say so that, is a no go the idea is to allow the users to install applications if they need to. =20 Cheers =20 =20 Steve (01908) 580623 =20 -----Original Message----- From: Adm...@ma... [mailto:Adm...@ma...]=20 Sent: 11 November 2003 14:40 To: una...@li... Subject: RE: [Unattended] Todo.pl -- Restart =09 =09 I do something similar, but I have a shutdown script make the registry change, the system has permission to change the registry. In my case it is triggered by a change to a central database (a grand name for a shared ini file), however you could use any trigger you like. =20 as an alternative, if you are at the machine, have you tried running the script using RUNAS and your admin credentials? =20 Regards =20 Kevin Lawry -----Original Message----- From: Steven D. Pretlove [mailto:st...@do...] Sent: 11 November 2003 14:17 To: una...@li... Subject: [Unattended] Todo.pl -- Restart =09 =09 Hi all, =20 when todo.pl processes .reboot (or one of its variations) it places the run command in the HKCU Run reg key =20 I have need to set the computer to logon as a administrator (using autolog.pl), reboot the machine, log on as admin, install program, clear autologon and then finally reboot. =20 all the above I can do quite successfully, once I manually kick of the todo.pl --go after the initial reboot and logon as admin =20 does anyone else do something like this if so how did you get round the problem ??? =20 my initial thoughts is to write a bat file to the allusers/start-up directory to run the "mapznrun.bat z:\bin\todo.pl --go" command and then clear it out at the end. much the same as the current method, just allowing for anyuser to logon afterwards and the command to still run. =20 other thoughts included changing the reg key from HKCU to HKLM but users by default do not have write permission =20 All advice greatly appreciated =20 _________________________________ Steven Pretlove=20 Dominos Pizza Group Limited=20 =09 Infrastructure Support Analyst * Tel: 01908 580623=20 * Fax: 01908 282582=20 * E-Mail: st...@do...=20 _________________________________=20 =20 =20 =09 =09 =09 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. =09 This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. =09 Dominos Pizza Group Ltd - 01908 580000 - www.dominos.co.uk =09 ********************************************************************** =09 |