Id CommandLine -- ----------- 1 Install-Module Microsoft.PowerShell.GraphicalTools 2 Get-Process |... 3 Get-Process 4 Get-History | Select-Object Id,Duration,CommandLine | Format-Table | ConvertTo-Html | Out-File get-history.html 5 cd 'C:\Users\Jim Martinson\Documents\CST1861\Week\09' 6 ls 7 Get-History | Select-Object Id,Duration,CommandLine | ConvertTo-Html | Out-File get-history-ok.html 8 Get-History | ConvertTo-Html | Out-File get-history-ok2.html 9 Get-Process | Format-Table Name,ID,... 10 Get-Process | Format-Table Name,ID,vm,workingset 11 $gp = Get-Process 12 $gp | Format-Table Name,ID,... 13 $gp | Format-Table Name,ID,workingset 14 $gp | Format-Table Name,ID,... 15 Get-Process -Name p*,*s* 16 Get-Process -Name p* 17 Get-Process -Name pr* 18 $False 19 5 -eq 5 20 5 -ne 5 21 5 -gt 5 22 5 -ge 5 23 $gp | Where-Object -FilterScript {$_.WorkingSet -gt 100MB} 24 Get-Process | gm 25 cls 26 Get-Process |... 27 Get-Process |... 28 Get-Process |... 29 Get-Process |... 30 Get-Process |... 31 Get-Command *add* 32 Get-Command *sum* 33 Get-Command sum* 34 Get-Command *measure* 35 help Measure-Object 36 Get-Process |... 37 get-process | gm 38 Get-Process |... 39 Get-Process |... 40 Get-Process |... 41 (Get-Process |... 42 (Get-Process |... 43 (Get-Process |... 44 (Get-Process |... 45 (Get-Process |... 46 gc -Module PSReadLine 47 gc 48 gcm -Module PSReadLine 49 Get-ChildItem ~/Documents/* | Where-Object {$_.length –gt 5MB} 50 Get-ChildItem ~/Documents/* -Recurse 51 Get-ChildItem ~/Documents/* -Recurse | Where-Object {$_.length –gt 5MB} 52 Find-Module | Where-Object {$_.Author -like 'Microsoft*'} 53 # Get sum of memory use by proccess in GB 54 (Get-Process | ... 55 (Get-Process | Sort-Object workingset | Measure-Object workingset -Sum).Sum / 1GB