November 2018
Intermediate to advanced
566 pages
17h 15m
English
The script is a simple three-liner:
The following script can accomplish this task:
$Processes = @{}
Get-Process | ForEach-Object { $Processes[$PSItem.Name] = $PSItem.WS/1MB }
$Processes['pwsh']
Optionally, you can also go for a foreach looping construct instead of the Foreach-Object cmdlet.
Read now
Unlock full access