Posts Tagged ‘ VMware PowerCLI ’

Find VMware Guests with Raw Physical Disks

February 27, 2016
By

VMware vSphere PowerCLI script to find all guests that have RDMs or raw physical disks. $Servers=”vcenter1″ Connect-VIServer $Servers $vms = get-cluster | get-vm Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | out-gridview -PassThru | Export-Csv -Path .\vm-with-rdm.csv
Read more »

Tags:
Posted in Technology | No Comments »

Configure VMware Datastore Multipath Policy by Disk Type

May 27, 2015
By

Here is a VMware vSphere PowerClI script that will find all datastores that are of the model Hitachi – Open-V, set the multipath policy to RoundRobin if it is anything else. $clustername = ‘clustersomething’ $datastore = get-datastore # Find datastores by HITACHI, model OPEN-V and multipath not RoundRobin and Change to RoundRobin $disks =...
Read more »

Tags:
Posted in Technology | No Comments »