forked from jdhitsolutions/MemoryTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemoryToolsSettings.ps1
More file actions
25 lines (19 loc) · 831 Bytes
/
MemoryToolsSettings.ps1
File metadata and controls
25 lines (19 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#global settings for MemoryTools commands
<#
These are variables that will be used with Get-MemoryUsage
to determine the status. The value is a percentage of free
physical memory available.
Any detected value less than $MemoryToolsWarning will be
classified as Critical.
You can change these variables at any time during your session.
Or modify the file for permanent changes. You will need to
re-import the module for the changes to take effect.
#>
[ValidateRange(1,100)][int32]$Global:MemoryToolsOK = 45
[ValidateRange(1,100)][int32]$Global:MemoryToolsWarning = 15
#define some aliases
Set-Alias -Name shmem -Value Show-MemoryUsage
Set-Alias -Name gmem -Value Get-MemoryUsage
Set-Alias -Name gmemp -Value Get-MemoryPerformance
Set-Alias -Name tmem -Value Test-MemoryUsage
Set-Alias -Name gpmem -Value Get-Physicalmemory