#104167 - 2003-08-28 07:11 PM
RunAs Automation
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
http://www.jsiinc.com/SUBO/tip7100/rh7111.htm
http://www.commandline.co.uk/sanur/sanur.zip
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:
SANUR v1.0 Win32 Commandline RUNAS Automation Utility for 2000/XP/2003. Copyright (c) 2001-2003 Ritchie Lawrence, http://www.commandline.co.uk.
RUNAS | SANUR password RUNAS | SANUR /i [drive:][path]filename
/i Pipes the password from the specified file into RUNAS.
Example usage:-
runas /u:domain\username program.exe | sanur pa55w0rd runas /u:domain\username program.exe | sanur /i password.txt
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:-
runas /u:domain\username program.exe >&2 | sanur pa55w0rd
|
|
Top
|
|
|
|
#104168 - 2003-08-28 08:48 PM
Re: RunAs Automation
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
I'm going to take this opportunity to once again plug TqcRunas 2002.2 Edition.
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.
|
|
Top
|
|
|
|
#104169 - 2003-08-29 04:15 PM
Re: RunAs Automation
|
Anonymous
Anonymous
Unregistered
|
Use SUD/SU from http://www.loa.espci.fr/winnt/sud/sud.htm
It's free. It lets you encrypt the entire password & execution parameters so people can't get at it... i.e.
Create a SU cfg file: su -u DOMAIN\Account -p - -c "<path to program> <switches>" -C <path to config file>.cfg -S It will prompt you for a password.
Run the config file anywhere at any time: su -C <path to config file>.cfg
Without entering any password. the .cfg file is encrypted.
It runs as a service or console. It's better than any other SU tool out there. [ 29. August 2003, 16:19: Message edited by: t0a5t ]
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 379 anonymous users online.
|
|
|