I made an interactive script that I need to run for all users
on xp pro (sp1 or sp2) or on w2k3 machines at a scheduled time.
Is this possible without having to know the password for
every user so the script runs as them?
I tried using schtasks.exe but that will only work
if I know the login credentials for every user that
I need the scheduled task to run for. Any ideas?
Page 1 of 1
interactive script for all users
#2
Posted 21 November 2007 - 02:49 PM
well the first thing would be to add it as a scheduled task either using
Command Line: at.exe 14:35 /interactive "cmdline of script"
or
Start - > Programs -> Accessories -> System Tools -> Scheduled Tasks
the problem is Task Scheduler runs under the system account and will run the script with system level privledges and all the profile specific variables are screwed up
get http://www.robotronic.de/runasspc/ it allows you to create a cryptfile that embeds an admin accounts password for use with a utility similar to runas. (the cryptfile is only good for running the commands you specify)
when creating your cryptfile with runasspcadmin.exe, set logon to Env under optional settings and the cmd will execute as whatever user is logged on whenever the script runs
Command Line: at.exe 14:35 /interactive "cmdline of script"
or
Start - > Programs -> Accessories -> System Tools -> Scheduled Tasks
the problem is Task Scheduler runs under the system account and will run the script with system level privledges and all the profile specific variables are screwed up
get http://www.robotronic.de/runasspc/ it allows you to create a cryptfile that embeds an admin accounts password for use with a utility similar to runas. (the cryptfile is only good for running the commands you specify)
when creating your cryptfile with runasspcadmin.exe, set logon to Env under optional settings and the cmd will execute as whatever user is logged on whenever the script runs
#3
Posted 23 November 2007 - 11:47 AM
Thank you very much.
It is really what I was searching for.
It is really what I was searching for.
#4
Posted 24 November 2007 - 03:12 AM
Sure. glad I could help out lemme know if you need anything else. Oh and welcome to MSFN
- ← Installshield 3 installer
- Application Installs
- How can I add Visio to Office 2007 Ultimate Unattended CD →
Share this topic:
Page 1 of 1



Help
Back to top









