The recommended encoding for these scripts can be reversed quite easily. While the encoding used is not as insecure as say ROT it still is a very simple substituion encoding method. RunAs in it's native modes is much more secure than our scripts; as the password is never written down in plain-text and must be input interactively.
The encoded vbs file a vbe file can be run in windows , XP, windows ME, and with no need to install additional software. Even Microsoft thinks so!
XHTML 1. How secure are passwords? AT: Schedule tasks to be run on the computer as the Local System account other accounts can be used too. Be sure to read about the Security risks of these scripts!! Running the program on behalf of different user is possible if the account has a password. If the username contains spaces, put quotes around it:. Related Reading. January 10, December 29, Tariq March 26, - pm Great write up. It worked like a charm. Mo May 19, - am perfect!
Akram Naeem August 20, - am This is perfect article. Pavel March 25, - pm works well, would it be possible to specify the password within this shortcut so there is no need to type it all the time? Leave a Comment Cancel Reply Notify me of followup comments via e-mail.
How can I make Windows software run as a different user within a script? Ask Question. Asked 13 years, 4 months ago. Active 13 years, 4 months ago. Viewed 5k times. Improve this question. Luke Luke 18k 24 24 gold badges 82 82 silver badges bronze badges.
Add a comment. Active Oldest Votes. Improve this answer. Not really :P but it is sad that that is the top google result. Here's hoping this will displace it! Except that the page in question is the top result for a good reason. So is this really a problem? Well, it can be. After all, Microsoft recommends that — for security reasons — you never log on to a computer using an Administrator account.
Instead, we suggest that you log on using a regular old user account, then use a utility such as RunAs any time you need to run a program as an Administrator. Well, not necessarily. Although Test. The secret to running a script under RunAs is to call one of the two script hosts, passing along the name of the script as a command-line argument.
For example, this RunAs command will fire up Cscript. You can see how easy that is. You simply call the RunAs command along with the following parameters:. This is optional, but makes it more likely RunAs will be able to do what it needs to do.
0コメント