Comment
mry

Hi really nice script Smiley Happy

Would be cool if you could add " | where {$_.PowerState -eq "PoweredOn"} " after $myVMs = Get-VM -Datastore $myDatastore -server $server

So we dont get errors on powered off vms.

By the way, is there any way to do the same with the datastores ?