Reply to Message

View discussion in a popup

Replying to:
gravey80
Contributor
Contributor

Figured out the answers to my own questions...and learnt a bit of CLI along the way Smiley Happy

So the figure quoted in the above table is FREE Disk Space!  I'm going to mod the script to include capacity and free space and perhaps even provisioned.

In order to only report on Storage that VM's were using (SAN Storage and not Local) I changed the following line from;

$Datastores = Get-Datastore | Sort-Object -Property Name #| Select-Object -First 1

to

$Datastores = Get-Datastore -VM $VM | Sort-Object -Property Name #| Select-Object -First 1

Reply
0 Kudos