You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module contains a set of PowerShell functions for reporting on computer memory utilization and configuration. The commands use `Get-CimInstance` so remote computers must be running PowerShell 3.0 or later. The project was first described on my [blog](http://bit.ly/1Tooj3Q).
5
+
This module contains a set of PowerShell functions for reporting on computer memory utilization and configuration. The commands use `Get-CimInstance`, so PowerShell 3.0 or later must be installed on remote computers, and they need to be configured for PowerShell remoting.
6
6
7
-
Install the latest version of this module from the PowerShell Gallery.
7
+
The project was first described on my [blog](http://bit.ly/1Tooj3Q).
8
+
9
+
Install the latest version of this module from the PowerShell Gallery. It should work in Windows PowerShell 5.1 and PowerShell 7 on a Windows platform.
8
10
9
11
```powershell
10
-
Install-Module MemoryTools [-scope currentuser]
12
+
Install-Module MemoryTools [-scope CurrentUser]
11
13
```
12
14
13
15
## [Get-MemoryUsage](docs/Get-MemoryUsage.md)
@@ -30,11 +32,11 @@ This command will also get the same information as Get-MemoryUsage but will disp
30
32
31
33
## [Test-MemoryUsage](docs/Test-MemoryUsage.md)
32
34
33
-
This command can be used to test if memory utilization meets some criteria. There are several parameter sets for different tests. All of them can be used with -Quiet to return a simple Boolean value.
35
+
This command can be used to test if memory utilization meets some criteria. There are several parameter sets for different tests. All of them can be used with `-Quiet` to return a simple Boolean value.
34
36
35
37
### Percent Free
36
38
37
-
The default behavior is to see is there is at least 50% free memory, but you can specify a different value.
39
+
The default behavior is to see if there is at least 50% free memory, but you can specify a different value.
This command will use `Get-CimInstance` to retrieve the top processes by *Workingset*. It will retrieve the top 5 by default. The output will include a percentage of total in-use memory the process is using as well as the process owner.
167
+
This command will use `Get-CimInstance` to retrieve the top processes by *Workingset*. It will retrieve the top 5 by default. The output will include a percentage of the total memory in use and the process owner.
I have plans to revise commands to take advantage of SSH remoting in PowerShell 7. It also might be nice to have a WPF-based GUI to display memory information.
0 commit comments