VMware Cloud Community
Hall222
Contributor
Contributor

Script to generate a report on all virtual machines in our vSphere 5.0 environments that are using independent disks

I’m looking for  a way to generate a report on all virtual machines in our vSphere 5.0 environments that are using independent disks. These VM’s require special consideration and configuration with our back up methods.  A script to generate a report for raw disks was relatively easy to find but I've not come across a way to find independent disks. Does anyone have suggestions?


Thank you

Tags (1)
0 Kudos
3 Replies
DZ1
Hot Shot
Hot Shot



Get-VM | where { ($_ | Get-HardDisk).Persistence -match "Independent*" }

Hall222
Contributor
Contributor

This worked like a champ (after installed PowerCLI 5.5).  Thank you very much, that was a big help !

0 Kudos
DZ1
Hot Shot
Hot Shot



I'm happy to help since I've received a lot of it on these forums.  

0 Kudos