Created Get-TotalDiskUsage
This commit is contained in:
1 parent
2a3eb898de
commit
434d8c2b9b
1 file changed
+4
@@ -0,0 +1,4 @@
|
||||
#Script returns total disk usage by all Powered On VMs in the environment in Gigabytes
|
||||
#Author: Chris Bradshaw via https://isjw.uk/using-powercli-to-measure-vm-disk-space-usage/
|
||||
|
||||
[math]::Round(((get-vm | Where-object{$_.PowerState -eq "PoweredOn" }).UsedSpaceGB | measure-Object -Sum).Sum)
|
||||
Reference in new issue
Block a user