When trying to protect a number of VMware Virtual Machines with SRM 6.0 we ran into the following alert on some of the VMs;
"Device not found: CD/DVD drive 1"This is due to an ISO image being mounted to the Virtual Machine (sometimes VMware tools or an OS disk). If you have a large number of VMs to set back to "Client Device" for CD settings you may want to do this by running the following script;
$vms = Get-Content C:\Scripts\In\cd-vms.txt
foreach($vm in $vms){This will set the CD settings to "Client Device" and confirm silently rather than needing to receive user input for each VM.
Get-VM -Name $vm | Get-CDDrive | Set-CDDrive -NoMedia -Confirm:$false
}
No comments:
Post a Comment