|
Hi I’ve bin reading all the instructions in topic "Runas like SU... Scripted without console!!!" and tried different things....
So now I’m trying to start a simple RUNAS command from a .kix
First I did at test of the RUNAS from cmd:
- Runas /env /user:nt\administrator cmd - entered the password and it worked fine!
then I’ve made this .kix:
$USER = "administrator" $PASSWORD = "due2keho"
run 'runas /env /user:nt\$USER cmd'
sendkeys("$PASSWORD{ENTER}")
I’m starting the .kix with this .cmd:
@echo off REM echo run MM6_11_d.exe
\\CWTCPH06\multimark\KIX_install\kix32.exe \\CWTCPH06\multimark\KIX_install\test.kix
and now I’m getting this error:
Enter the password for nt\administrator: Attempting to start cmd as user "nt\administrator" ... 0Press any key to continue . . . RUNAS ERROR: Unable to run - cmd 267: The directory name is invalid.
any ideas??
|