Create Get-TotalMemoryAllocation.ps1
This commit is contained in:
1 parent
434d8c2b9b
commit
da2cf62c1b
1 file changed
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#Script gets total memory allocation in GB of all powered on VMs in the environment
|
||||||
|
#Author: Chris Bradshaw via https://isjw.uk/powercli-snippet-total-memory-allocation/
|
||||||
|
|
||||||
|
[System.Math]::Round(((get-vm |
|
||||||
|
where-object{$_.PowerState -eq "PoweredOn" }).MemoryGB |
|
||||||
|
Measure-Object -Sum).Sum ,0)
|
||||||
Reference in new issue
Block a user