quote: 7111 » Sanur freeware allow you to script RunAs.
When you use the RunAs utility, it prompts for a password, unless you can live with the solution I described in tip 3063.
To workaround this behavior, download and unzip Sanur.zip, a tiny Win32 console utility that pipes a password into the Windows 2000/XP/2003 Runas utility, making RunAS scriptable.
When you type sanur /? at a CMD prompt, it displays:
Note: As Runas uses stdout to show errors, I recommend stdout is redirected to stderr using >&2. This does not affect the program started by Runas. Eg:-
This wonderful application is scriptable from the commandline and COM as well. I just used it to push out Service Pack 4 and the MS03-026 patches to our users who did not have admin rights on their workstations.
While it isn't free, it is very affordable (from 80 € for 10 seats to 3000 € for an Enterprise license).
It is secure as TqcRunas can read its command line from a strongly encrypted file. Therefore, you can exactly specify which programs and options your users can run with administrator's privileges without revealing the administrator's password.
[ 16. September 2003, 00:01: Message edited by: MightyR1 ]
_________________________
Greetz, Patrick Rutten
- We'll either find a way or make one... - Knowledge is power; knowing how to find it is more powerful... - Problems don't exist; they are challenges...