Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 201425

Re: Running batch file on guest VM using vCD?

$
0
0

If you have the MoRef (and you are using a single vCenter), then you can get the VC:VirtualMachine object like this:

var XPath = "xpath:id='"+vmMoRef+"'";
var VMs  = VcPlugin.getAllVirtualMachines(null, XPath);
var vCenterVM = VMs[0];

Viewing all articles
Browse latest Browse all 201425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>