Link to home
Start Free TrialLog in
Avatar of Unimatrix_001
Unimatrix_001Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Calling a batch file from vbscript with administrator privileges.

Hello,

If I'm running a vbscript as an administrator and that vbscript calls a batch file simply as:

Set objSh = CreateObject("wscript.shell")
objSh.Run "Test.bat"

Open in new window


Will the batch file and anything it calls also run with administrator privileges?

Thanks,
Uni
ASKER CERTIFIED SOLUTION
Avatar of boowhup
boowhup
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Unimatrix_001

ASKER

:)