Creating a script to run an application as specific user at a specific interval
Posted on 2008-06-24
I am a 'scripting virgin'; have played around with batch files but can't get my machines to do what I want from within a batch file. I have 'sort of' gotten it working with the default Task Scheduler but it required a slight tweak on each machine.
I log on with a local user (not admin) account and I have an application that I need to run on both my Windows 2000 and Windows XP machine at logon and every 30 minutes on the half hour thereafter. I need the application to be run as a specific user (local Admin) with a specific password. The Administrator name and password are the same on both machines.
Lets say that the application is called BIS.EXE and is located at "C:\Program Files\BIS\BIS.EXE". Lets also say that the admin account is called ADMINISTRATOR and the password is PASSWORD. Obviously not the case, but there to make life easier in this case.