Hey,
We have an admin wrapper here that runs using local admin rights. It
uses the run as command to kick off a script with privileges but when
we put it into AD login scripts it runs ok but as soon as something
takes focus away from the command prompt window it stops the password
from being passed and it sits there prompting the user for a password.
Here is the script we are using is there anything we can do to get
around having to bring up the command prompt to pass the password or is
there a decent third party ap that could do it for us.
Any help would be appreciated.
Script:
Note user names and password changed for obvious reasons
Function RunUpdates
appl="runas /user:Adminuser " & """wscript update.vbs"""
WshShell.run appl,2,bwaitonreturn
Do Until WshShell.Appactivate("runas.exe")
wscript.sleep(200)
Loop
WshShell.sendkeys "password" & "{ENTER}"
End Function