PowerCLI script to remove the ISO from virtual machine
Connect-VIServer vcenterserver
Get-CDDrive -VM (Get-Content D:\Scripts\CDRom\serverlist.txt) | Set-CDDrive -nomedia -Confirm:$false | Get-VMQuestion | Set-VMQuestion –Option "Yes"
Disconnect-VIServer vcenterserver -Confirm:$false
No comments:
Post a Comment