PCLI.me

POWERCLI – Powershell — Hit me up on twitter @VMNICK0

Unmount all of your CD-Roms!

nicholasfarmer October 31, 2016

#Quick On-liner to look through all VMs in a vCenter and unmount all of the connected CDs.

get-vmhost | get-vm |get-cddrive| set-cddrive -nomedia -confirm:$false

https://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/Set-CDDrive.html

VirtualMachine

Post navigation

Find VMs Where the Running OS Does Not Match the Configured OS.
List your VM Environment Tags per cluster.
Recent Posts
  • Deploy a VIB via PowerCLI…
  • vSphere/vCenter Tagging Performance Test Script
  • vSphere Tags using CISServer methods.
  • Check vCenter For User and API Access Frequency.
  • Backup your VCSA via automation+powerCLI Script.
Archives
  • February 2020
  • February 2019
  • July 2018
  • December 2017
  • October 2017
  • September 2017
  • March 2017
  • October 2016
  • May 2016
  • June 2015
  • May 2015
  • January 2015
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • February 2014
  • August 2013
  • July 2013
  • June 2013
  • May 2013
Categories
  • Bugs and Notes
  • Datastore
  • HA and DRS
  • Host
  • Network
  • Powershell
  • Script Performance Settings
  • Uncategorized
  • vCenter
  • VirtualMachine
  • Windows
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Built on the Structr Framework for WordPress