Tech Support > Operating Systems > Windows NT > RUNAS password
RUNAS password
Posted by Ledor Zepe on November 10th, 2003


I'd like to run patches on our Win2K and WinXP via logon
script. I've tried redirecting the password of the admin
account, see below, but it didn't work:

RUNAS adminuser.... < password.txt

where: password.txt contains the password for adminuser.

In WinNT, I use SU then redirect it to password.txt and it
work. I'd like to do the same trick in RUNAS. Is this
possible?

Posted by Torgeir Bakken (MVP) on November 10th, 2003


Ledor Zepe wrote:

Hi

If it doesn't matter if the password is in clear text:

Sanur Commandline Runas Automation Utility (free)
http://www.commandline.co.uk/sanur/

CPAU on the free win32 c++ tools page of
http://www.joeware.net


if it does:

Some 3rd party RunAs solutions that "hides" (encrypt) username/password
are listed in the link below (buy solutions). Can be run from network shares,
so nothing needs to be installed on the client computers.

http://groups.google.com/groups?selm...6D%40hydro.com


And from a recent post by Peter M.:

<quote>
I am currently using AutoIt V3 (http://www.hiddensoft.com/autoit3/)
It includes a command to run a command as a special user. You can
write a simple script and then compile it with autoit as an executable.
Protect this executable with a password and you are done.

AutoIt V3 ist still beta and under development, but the actual version
is stable and the functions you need (runasadmin,regwrite...) are
already implemented and working.
</quote>


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter




Similar Posts