VMware Cloud Community
mbellcalstate
Contributor
Contributor

cdrom / floppy device type - cli solution?

Hello all

We noticed some errors with VMotion and discovered we have quite a

few hosts with Floppy and/or CD connected to a host or ISO. We would

like to ensure all are connected to the Client Device so we have no

interruption with VMotion.

Does anyone know how to possibly change these setting from the CLI?

Thanks

Reply
0 Kudos
4 Replies
esarakaitis
Enthusiast
Enthusiast

this can be easily done via powershell (hence the forum you in)

are you wanting RCLI or powershell?

get-vm | get-floppydrive | set-floppydrive -connected:$false
get-vm | get-cddrive | set-cddrive -connected:$false

http://www.vmwarescripting.com

mbellcalstate
Contributor
Contributor

Hello

I am new to PowerShell but working through some docs and examples now.

Thank you for your response - I will give it a try soon.

Reply
0 Kudos
halr9000
Commander
Commander

NoMedia should do it, but you may want to disconnect as well. Take the -whatif off when happy.

Get-VM | Get-CDDrive | Set-CDDrive -Connected:$false -NoMedia -WhatIf






[PowerShell MVP|https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], VI Toolkit forum moderator

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
mbellcalstate
Contributor
Contributor

Thanks for your response, I appreciate the help this group is offering on this.

Regards

Reply
0 Kudos