Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| 2017-11-01 19:57:20 | ![]() 54,568 Views |
For support, training, or more information about PowerShell check out http://www.boldzebras.com
Here is the actual PowerShell from the video.
$Array = @()
$Processes = Get-Process
Foreach($Proc in $Processes)
{
If($Proc.WS/1mb -gt 100)
{
$Array += New-Object psobject -Property @{‘ProcessName’ = $Proc.name; ‘WorkingSet’ = $Proc.ws}
}
}
$Array | select ‘ProcessName’, ‘WorkingSet’ | Export-Csv .//file2.csv -NoTypeInformation
$CSVImport = @()
$CSVImport = Import-Csv .//file2.csv
ForEach($dog in $CSVImport){Write-host /”Process Name:/” $dog.processname /” Working Set:/” $dog.workingset}
#Just want to look at it in a prettier way?
$CSVImport | Format-Table -AutoSize
#Other tricks to keep in your pocket
$CSVImport[1].ProcessName
Please take the opportunity to connect and share this video with your friends and family if you find it useful.