Hi, was hoping someone could help me out here.
I'm attempting to script the connection of the virtual machines CD Drive to an ISO image held on a local file share and disconnect afterwards in order to install an OS.
Has anyone come across this before and been able to solve it?
The closest thing I've come across is the following
(Get-VM VM | Get-View).Config.Hardware | select -ExpandProperty Device | ? { $_.key -eq 3000 } | ft key, { $_.DeviceInfo.Label }, { $_.DeviceInfo.Summary } -AutoSize
Thanks in advance
You question is around PowerCLI, but you're posting in Guest SDK which is different.
You may want to repost your question in the PowerCLI forums - http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli The gurus there should be able to help answer you question.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".