mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-08 09:20:19 +02:00
Update check-swap-swap.ps1
This commit is contained in:
parent
945914a326
commit
107b807e22
@ -21,7 +21,7 @@ try {
|
|||||||
$Result = $(free --mega | grep Swap:)
|
$Result = $(free --mega | grep Swap:)
|
||||||
[int]$Total = $Result.subString(5,14)
|
[int]$Total = $Result.subString(5,14)
|
||||||
[int]$Used = $Result.substring(20,13)
|
[int]$Used = $Result.substring(20,13)
|
||||||
[int]$Free = $Result.substring(31,12)
|
[int]$Free = $Result.substring(32,11)
|
||||||
} else {
|
} else {
|
||||||
$Items = get-wmiobject -class "Win32_PageFileUsage" -namespace "root\CIMV2" -computername localhost
|
$Items = get-wmiobject -class "Win32_PageFileUsage" -namespace "root\CIMV2" -computername localhost
|
||||||
foreach ($Item in $Items) {
|
foreach ($Item in $Items) {
|
||||||
|
Loading…
Reference in New Issue
Block a user