November 21, 200718 yr 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?
November 21, 200718 yr well the first thing would be to add it as a scheduled task either usingCommand Line: at.exe 14:35 /interactive "cmdline of script"orStart - > Programs -> Accessories -> System Tools -> Scheduled Tasksthe 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 upget 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
November 24, 200718 yr Sure. glad I could help out lemme know if you need anything else. Oh and welcome to MSFN
Create an account or sign in to comment