Hello,
I want a script that calculates the percentage of the used space pf a datastore and get me only the datastores that the UsedSoaceGB is greater than a specific percentage.
Thanks,
Something like this?
Get-Datastore |
where { ($_.CapacityGB - $_.FreeSpaceGB) / $_.CapacityGB * 100 -gt $percent } |
select Name
---------------------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Something like this?
Get-Datastore |
where { ($_.CapacityGB - $_.FreeSpaceGB) / $_.CapacityGB * 100 -gt $percent } |
select Name
---------------------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yeah I think so. Let me try it in the morning and let you know.