Jump to content

interactive script for all users


viroman

Recommended Posts

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


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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...