The code for notes.txt is: Get-History | Select-Object Id,Duration,CommandLine | Format-Table | ConvertTo-Html | Out-File get-history.html Get-History | Select-Object Id,Duration,CommandLine | ConvertTo-Html | Out-File get-history-ok.html Get-History | ConvertTo-Html | Out-File get-history-ok2.html Get-Process | Format-Table Name,ID, @{l='VirtualMB';e={$_.vm/1MB}}, @{l='PhysicalMB';e={$_.workingset/1MB}} Get-Process | Format-Table Name,ID,vm,workingset $gp | Format-Table Name,ID, @{l='PhysicalMB';e={$_.workingset/1MB}} $gp | Format-Table Name,ID,workingset $gp | Where-Object -FilterScript {$_.WorkingSet -gt 100MB} Get-Process | Where-Object {$_.ProcessName -ne 'powershell' -and $_.ProcessName -ne 'pwsh'} | Sort-Object vm | Select-Object -Last 10 | Measure-Object vm -Sum # Get sum of memory use by top 10 proccess in MB (Get-Process | Where-Object {$_.ProcessName -ne 'powershell' -and $_.ProcessName -ne 'pwsh'} | Sort-Object workingset | Select-Object -Last 10 | Measure-Object workingset -Sum).Sum / 1MB # Get list of files in my Documents folder that are > 5BM Get-ChildItem ~/Documents/* -Recurse | Where-Object {$_.length –gt 5MB} # Get all microsoft modules from the gallery Find-Module | Where-Object {$_.Author -like 'Microsoft*'} # Get sum of memory use by proccess in GB (Get-Process | Sort-Object workingset | Measure-Object workingset -Sum).Sum / 1GB # Set interfaces to Private Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory "Private" Set-NetConnectionProfile -InterfaceAlias 'Ethernet 2' -NetworkCategory "Private" #Start WinRM service (Windows Remote Management) Enter-PSSession -HostName DESKTOP-46AVB2C Invoke-Command -ComputerName DESKTOP-46AVB2C -ScriptBlock { Get-Process pwsh | Where-Object {$_.Parent.ProcessName -like '*term*'}} Invoke-Command -ComputerName DESKTOP-46AVB2C -ScriptBlock { Get-Process pwsh } Invoke-Command -ComputerName DESKTOP-46AVB2C -ScriptBlock { dir } Invoke-Command -ComputerName DESKTOP-46AVB2C -ScriptBlock { Get-Process -name powershell | Stop-Process }