<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scripting on Evan Hoffman</title><link>https://evan.wtf/tags/scripting/</link><description>Recent content in Scripting on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Sat, 20 Apr 2013 14:59:36 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/scripting/index.xml" rel="self" type="application/rss+xml"/><item><title>Use PowerShell to disconnect the CDROMs from all VMs in vCenter</title><link>https://evan.wtf/2013/04/20/use-powershell-to-disconnect-the-cdroms-from-all-vms-in-vcenter/</link><pubDate>Sat, 20 Apr 2013 14:59:36 +0000</pubDate><guid>https://evan.wtf/2013/04/20/use-powershell-to-disconnect-the-cdroms-from-all-vms-in-vcenter/</guid><description>&lt;p&gt;Recently I was moving all VMs from one NFS datastore to another so we could destroy the old volume. Storage vMotion took care of this for the most part, but even after moving the files, vCenter still showed that the VMs were using the old datastore. It turned out this was due to the VMs having mounted ISOs on that datastore. The solution was to eject/unmount the CDrom, but I didn&amp;rsquo;t want to do &amp;ldquo;Edit Settings&amp;hellip;&amp;rdquo; and manually remove the CDrom for 200+ VMs.&lt;/p&gt;</description></item></channel></rss>