Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Run Program in Guest as an Administrator

$
0
0

I'm attempting to automate some machine set-up tasks using the VIX API with VMware Workstation v9 using VBS. I have hit a blocker when attempting to use the "RunProgramInGuest" option on Windows 8, the program is failing as it is not being run as an administrator.

 

Set job = vm.RunProgramInGuest("C:\windows\system32\cmd.exe", "/c C:\test\test.bat", 0, Nothing, Nothing)

 

Any ideas how I can force this to run as an administrator? UAC is currently turned off.

 

Thanks


Viewing all articles
Browse latest Browse all 176483

Trending Articles