Thursday, October 02, 2008

VI Toolkit Commands

I was getting tired of looking for these so I'm starting my own collection.

 

Here is one for checking for running status of a VM and disconnecting floppies and CD drives:

 

$vms = Get-VM | where {$_.VMState –eq 'Running'}
$vms | Get-DVDDrive | Set-DVDDrive –NoMedia
$vms | Get-FloppyDrive | Set-FloppyDrive –NoMedia