You can then call the Auto. It script from your script and use its runas function. Windows runas doesn't support providing a password unless you're happy with the /savecred option - which is fine if you're only running the task from a single computer. The first time it will ask you for a password, but after that it won't (though you still have to use /savecred option each time you use it). I've got a feeling using this could be a huge security hole. I have some scripts that require administrator privileges to run in Windows 7. How to run program as administrator at. How to run a VBScript as Administrator on Windows 7. Windows 7 'Run as Administrator. I know I can go to the Start Menu and right click a program, and find the 'run. Is it possible to automatically run a batch file as. But I found that in Windows 7. Home » Windows 7 » Run Scripts Everytime You Logoff in Windows 7. Program Compatibility Assistant in Windows 7. This will show you how to have a program run as administrator with full. How to Run a Program in Compatibility Mode in Windows 7; How to Add 'Run as administrator. But since it seems this is for your own machine, in your batch use this: runas /user: computername\username /savecred yourcommand. Another way is to make a scheduled task that can be called by your script. You can make it using the GUI or from an elevated command line as described here. You can then call it from your script like this: SCHTASKS /Run /TN yourtaskname.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |