Page 1 of 1 1
Topic Options
#104167 - 2003-08-28 07:11 PM RunAs Automation
Radimus Moderator Offline
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


_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#104168 - 2003-08-28 08:48 PM Re: RunAs Automation
Chris S. Offline
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
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
#104170 - 2003-09-15 11:51 PM Re: RunAs Automation
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I'll plug the Task Scheduler, free with the purchase of an OS license [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#104171 - 2003-09-16 12:01 AM Re: RunAs Automation
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Rad,

found SANUR to and am using it: Secure SANUR example

[ 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...

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 379 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.091 seconds in which 0.057 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org