Is it possible to script running a program as a different user. I have a program that needs admin privilages to run. Currently I have the program shortcut setup to use the run as different user. Then the Run as different user dialog box pops up and they enter the password for the admin privilages. Is there anyway that a username and password can be passed without the user ever having to do anything but click on the shortcut? Any help is greatly appreciated.
This conversation is currently closed to new comments.
Try the runas command. The problem is that the password will have to be in plain text in a batch file so there are security implications. A better example would be to put this in an AutoIt exe file (AutoIt is a program similar to ScriptIt but you can turn your scripts into exe's). This would hide the password.
This is usualy only possible using SMS. What answer one suggests converting your script to exe will not help since if you open it in notepad you will still be able to see the password.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Scripting Run as different user