You can also use the Get-Counter cmdlet (PowerShell 2.0):
Get-Counter '\Memory\Available MBytes'
Get-Counter '\Processor(_Total)\% Processor Time'
To get a list of memory counters:
Get-Counter -ListSet *memory* | Select-Object -ExpandProperty Counter
More Related Contents:
- Diskpart detail disk with powershell
- How do I pass a local variable to a remote `Invoke-Command`? [duplicate]
- Powershell Multidimensional Arrays
- The ‘
- How can I split a text file using PowerShell?
- Watch file for changes and run command with powershell
- How to automate either PowerShell or PowerShell Core for same machine
- Why won’t Variable update?
- What does $($variableName) mean in expandable strings in PowerShell?
- How can I write a PowerShell alias with arguments in the middle?
- Terminating a script in PowerShell
- Wait for multiple simultaneous powershell commands in other sessions to finish before running next commands
- Forcing PowerShell errors output in English on localized systems
- Multiple foreground colors in PowerShell in one command
- PowerShell – Decode System.Security.SecureString to readable password
- How to quickly change shell folder to match the currently open file
- Extract the filename from a path
- Editing shortcut (.lnk) properties with Powershell
- Colored text output in PowerShell console using ANSI / VT100 codes
- Set Value of Nested Object Property by Name in PowerShell
- powershell – list local users and their groups
- How to call batch script from Powershell?
- Is there an alternative to GUID when using msiexec to uninstall an application?
- Can’t install nuget package because of “Failed to initialize the PowerShell host”
- What security setting is preventing Remote PowerShell 2.0 from accessing UNC paths
- PowerShell Capture Write-Host output
- start remote process within the context
- How can I elevate Powershell while keeping the current working directory AND maintain all parameters passed to the script?
- Are you able to use PtrToStringAuto to decrypt a secure string in Powershell 7 on macOS?
- Getting “Can’t find the drive. The drive called ‘IIS’ does not exist.”