VMware Cloud Community
MrVmware9423
Expert
Expert

VMs stored on Mulitple Datastores...

Hello Team,

We are planning to keep VMs on same datastore instead of multiple datastores, We have 10,000+ VMs in our inventory. Is there any script which will help us to find VMs which are stored on multiple datastores.Please assist me on the same

0 Kudos
1 Reply
LucD
Leadership
Leadership

Try something like this

Get-VM | where{$_.ExtensionData.Datastore.Count -gt 1}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos