Hello
I try to find the available CD-Rom hostdevices in the Virtual Machine hostregistration. If you set the CDRom connection in the vSphere client this strings are listed in the Host Device Type.
Regards
Manfred
One way of doing this would be like this
$vm = Get-VM <VM-name> | Get-View $esx = Get-View $vm.Runtime.Host $envBrowser = Get-View (Get-View $esx.Parent).environmentBrowser $configTgt = $envBrowser.QueryConfigTarget($esx.MoRef) $configTgt.CdRom | %{$_.Name}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
One way of doing this would be like this
$vm = Get-VM <VM-name> | Get-View $esx = Get-View $vm.Runtime.Host $envBrowser = Get-View (Get-View $esx.Parent).environmentBrowser $configTgt = $envBrowser.QueryConfigTarget($esx.MoRef) $configTgt.CdRom | %{$_.Name}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD thank you a lot!
Regards
Manfred