Page 1 of 1

Runas and two boxes

Posted: 16 Dec 2010 10:36
by Jumping
I, could you please help me out .. i can't get any further.

I'm working on a batch file which will start a vbs script.
This vbs scripts needs te be run in administrator mode (runas).

My code looks like this now:

start /w runas.exe /U:vpnl\administrator "cmd /k net use h: \\vpnl001\shared_home /USER:vpnl\jumping"

so far so good (i think).
But this line opens a new dos box in which i cannot start the script ...

who can help me out ..

Re: Runas and two boxes

Posted: 21 Dec 2010 14:29
by ChickenSoup
Try a simpler line:

Code: Select all

runas.exe /user:vpnl\administrator "net use h: \\vpnl001\shared_home /USER:vpnl\jumping"