How to create a batch file with the runas command and inputting password
Posted on 2004-11-17
We have this scenario.
Windows 2003 AD Domain.
Remote users sometimes have problems with their printers which are fixed by myself remoteing in and starting and stopping the spooler service.
Id like to be able to place a script on the users desktop that they can run when they have the printer issue, so that I can give ownership of this task to them, instead of them ringing me.
I dont want to elevate their user permissions or place the users in a group such as power users.
I want to be able to create a script which runs as admin or as a user that has the power to start and stop the spooler service.
I know that the runas command has no way of automatically entering the password, and was wondering how I can achieve my goal, so that I dont get calls for this support.
Any help greatly appreciated.