viroman Posted November 21, 2007 Share Posted November 21, 2007 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? Link to comment Share on other sites More sharing options...
PC_LOAD_LETTER Posted November 21, 2007 Share Posted November 21, 2007 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 Link to comment Share on other sites More sharing options...
viroman Posted November 23, 2007 Author Share Posted November 23, 2007 Thank you very much.It is really what I was searching for. Link to comment Share on other sites More sharing options...
PC_LOAD_LETTER Posted November 24, 2007 Share Posted November 24, 2007 Sure. glad I could help out lemme know if you need anything else. Oh and welcome to MSFN Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now