Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hows enter automatically PASSWORD with RUNAS cmd ?

Status
Not open for further replies.

giger33

Technical User
May 11, 2000
1
FR
Hello,<br><br>With NT4 in our script i use &quot;SU&quot; commande (of reskit)<br>for run commande with admin right in script connection<br>but i have some problems with &quot;SU&quot; of W2K, and the runas<br>command don't done a syntax for enter the password <br>by script. (with &quot;SU&quot; there's the variable SU_PASSWORD)<br><br>thanks<br><br>arnaud (france)
 
There was a series of post on this a short while ago, and I think the general concensus was that you cant using the standard windows utils, and that it'll require a third party product.
<< JOC >>
 
go to the web page, copy and paste the .vbs script and adapt it for you own usage

I created a batch file containg

vdrunas domain\user password &quot;c:\test\Q329077.exe /Q&quot;

this will install the MS security patch with no problems I am currently adapting the script to include the username, password and then plan to encrypt it as discribed in the comments of the script so the general users can not see the admin password.

My plan is to place the files into the netlogon folder, but before I do this I want to include a check to see if the this patch has been run before by writing and checking a registry entry

Hope this has been a help

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top