![]()
'Handles'`
'Id'`
'ProcessName'`
'StartTime'`
@{ Name = 'CPU(s)'; Expression = { if ($_.CPU) { $_.CPU.ToString('N') } } }`
@{ Name = 'NPM(K)'; Expression = { [int] ($_.NPM / 1KB) } }`
@{ Name = 'PM(K)'; Expression = { [int] ($_.PM / 1KB) } }`
@{ Name = 'SI'; Expression = 'SessionId' }`
@{ Name = 'WS(K)'; Expression = { [int] ($_.WS / 1KB) } }`
Format-Table -Property Id, Name, MainWindowTitle -AutoSize`
Where-Object -Property MainWindowTitle |`
Write-Host "This will not be redirected"
Get-NetFirewallHyperVVMSetting -PolicyStore ActiveStore -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}'
Unregister-PSRepository -Name "PSGallery"
fsutil.exe repair query c:
fsutil.exe repair query d:
$PSVersionTable
$processes = Get-Process`
$processes | Sort-Object { $_.PriorityClass } | Format-Table -View Priority`
(Get-PSReadlineOption).HistorySavePath
) -AutoSize`
.\GetChildItem
.\GetHelp.txt Redirection
.\Sysinternals
.\Sysprep\
.\chkdsk.exe /F c:
.\chkdsk.exe c:
.\chkdsk.exe c: /F
.\du.exe -c -v C:\Users\stevee\
.\du.exe -cv C:\Users\stevee\
.\du.exe -v C:\
.\du.exe -v C:\Users\stevee\
.\du.exe -v d:
.\du.exe -v d:\
.\du.exe C:\Users\stevee\
.\du.exe C:\Users\stevee\ -v
.\du.exe -vc
.\du64.exe
.\du64.exe 'C:\Users\stevee\Desktop\Google Course\'
.\du64.exe 'C:\Users\stevee\Desktop\Google Course\' -vc
.\du64.exe 'C:\Users\stevee\Desktop\Google Course\DU\'
.\du64.exe C:\Users\stevee\
.\du64.exe C:\Users\stevee\ -vc
.\du64.exe C:\Users\stevee\ -vc
.\du64.exe C:\Users\stevee\ -vc > file.txt
.\du64.exe C:\Users\stevee\ -vc file.txt
.\du64.exe C:\Users\stevee\Desktop\Google Course\ -vc
.\du64.exe C:\Users\stevee\Desktop\Google Course\DU> -vc
.\du64.exe -vc
.\du64.exe -vc .
.\du64.exe -vc C:\Users\stevee\Desktop\Google Course\DU>
.\du64a.exe C:\Users\stevee\
.\du64a.exe -vc
.\gpresult.exe /H GPResult.html
.\icacls.exe
.\icacls.exe C:\User\stevee\Desktop
.\ipconfig.exe
.\msinfo32.exe
.\notepad.exe
.\python.exe
.\pythonw.exe
.\speedtest.exe
.\sysinternals
.\tasklist.exe
.\tasklist.exe /?
.\tasklist.exe /S stevee
.\tasklist.exe /U /S stevee
.\tasklist.exe /U stevee
.\tasklist.exe C:\Users\stevee\
.\tasklist.exe workgroup\stevee
/?
Add-WindowsCapability -Online -Name OpenSSH.Server
C:\"Program Files (x86)"\Nmap\zenmap\bin
C:\Program Files
C:\Program Files (x86)
C:\Program Files (x86)\
C:\Program Files (x86)\Nmap\
C:\Program Files (x86)\Nmap\zenmap\
C:\Program Files (x86)\Nmap\zenmap\bin
C:\Users\stevee\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine.txt
DIR | findstr "Steve" '.\Steve Edwards Tech + Teaching.docx'
DISM.exe /Online /Cleanup-image /Restorehealth
DISM.exe /Online /Cleanup-image /Scanhealth
Del .\file.txt
DiskPart
Find-Package sysinternals -IncludeDependencies
GPRESULT /H GPReport.html
Get-Alias
Get-Alias > GetAlias.txt
Get-ChildItem
Get-ChildItem /?
Get-ChildItem > GetChildItem.txt
Get-ChildItem \\BabyHP\homes
Get-ChildItem \\BabyHP\varwww
Get-Content .\.wslconfig
Get-FileHash .\Win11_23H2_EnglishInternational_x64v2.iso
Get-Help -Force ls
Get-Help -force ls
Get-Help ls
Get-Help ls -Full
Get-History
Get-LocalGroup
Get-LocalGroupMember
Get-LocalGroupMember Administrators
Get-LocalUser
Get-NetFirewallHyperVRule -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}'
Get-NetFirewallHyperVVMCreator
Get-NetFirewallHyperVVMSetting -PolicyStore ActiveStore -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}'
Get-NetFirewallRule -Name *SSH*
Get-NetFirewallRule | Get-NetFirewallPortFilter | Where-Object {$_.LocalPort -eq 80} | Get-NetFirewallRule
Get-Process
Get-Process -Id $PID
Get-Process -Name SQL* -Module
Get-Process -Name powershell
Get-Process -Name powershell -FileVersionInfo
Get-Process -Name powershell -IncludeUserName
Get-Process -Name powershell | Format-Table -Property @(`
Get-Process winword, explorer | Format-List *
Get-Process | .\Sort CPU
Get-Process | Measure-Object -Line
Get-Process | Sort CPU
Get-Process | Sort CPU
Get-Process | Sort CPU -Descending | Select -First 3 -Property Id.ProcessName.CPU
Get-Process | Sort CPU -descending
Get-Process | Sort CPU -descending | Select -First 3 -Property Id.ProcessName.CPU
Get-Process | Sort CPU -descending | Select -first 3
Get-Process | Sort CPU -descending | Select -first 3 -Property ID.ProcessName.CPU
Get-Process | Sort CPU -descending | Select -first 3 -Property Id.ProcessName.CPU
Get-Process | Sort CPU -descending | Select -first 3 -property ID.ProcessName.CPU
Get-Process | Sort CPU -descending | Select -first 3 -property Id
Get-Process | Sort CPU -descending | Select -first 3 -property Id -property Process
Get-Process | Sort CPU -descending | Select -first 3 -property Id -property ProcessName
Get-Process | Sort CPU -descending | Select -first 3 -property Id ProcessName
Get-Process | Sort CPU -descending | Select -first 3 -property Id,CPU
Get-Process | Sort CPU -descending | Select -first 3 -property Id,CPU,ProcessName
Get-Process | Sort CPU -descending | Select -first 3 -property Id.CPU
Get-Process | Sort CPU -descending | Select -first 3 Id
Get-Process | Sort CPU -descending | Select -first 3 Id ProcessName
Get-Process | Sort CPU -descending | Select -first 3 Id.ProcessName
Get-Process | Sort CPU -descending | Select -first 3 Id.Property
Get-Process | Where-Object WorkingSet -GT 20MB`
Get-Process | Where-Object { $_.WorkingSet -gt 20971520 }`
Get-Process |`
Get-Service
Get-Service
Get-Service | FINDSTR "Pause"
Get-Service | FINDSTR "Run"
Get-Service | FINDSTR "Stopped"
Get-Service | FINDSTR "stop"
Get-Service | FINDSTR "stopped"
Get-help "2>"
Get-help "about_Redirection"
Get-help "about_redirection"
Get-help "about_redirection" 2>
Get-help "about_redirection" 2>$null
Get-help "redirection"
Get-help 2>
Get-help about_Redirection
Get-help about_redirection
Get-help output_redirection
Get-help redirection
Help
Install-Module -Name SpeedTest-CLI
Install-Package -name sysinternals
Install-Package -name sysinternals -Source Chocolatey
Install-Package -name sysinternals -Source chocolatey
OptionalFeatures.exe
Remove-LocalUser cesar
Remove-Package -name sysinternals
Restart-Computer
Restart-NetAdapter
Restart-Service -DisplayName "Google Drive*"
SFC /SCANNOW
Select-String "index"
Select-String "index" .\Documents\
Select-String -Path "C:\temp\log.txt" -Pattern "error"
Select-String index *.txt
Select-String index .\GetAlias.txt
Select-String item .\GetAlias.txt
Select-String mysql C:\MyData\
Select-String mysql C:\MyData\*.*
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Set-NetFirewallHyperVVMSetting -DefaultInboundAction Allow -Direction Inbound -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -DefaultInboundAction Allow -DisplayName "Allow Web 80" -Direction Inbound -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -DefaultInboundAction Allow or New-NetFirewallHyperVRule -DisplayName "Allow Web 80" -Direction Inbound -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -DefaultInboundAction Allow or New-NetFirewallHyperVRule -DisplayName "Allow Web 80" -Direction Inbound -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow or New-NetFirewallHyperVRule -DisplayName "Allow Web 80" -Direction Inbound -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow or New-NetFirewallHyperVRule -Name "Allow Web 80" -DisplayName "Allow Web 80" -Direction Inbound -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow or New-NetFirewallHyperVRule -Name "MyWebServer" -DisplayName "Allow Web 80" -Direction Inbound -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow or New-NetFirewallHyperVRule -Name "MyWebServer" -DisplayName "My Web Server" -Direction Inbound -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -Protocol TCP -LocalPorts 80
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow or New-NetFirewallHyperVRule -Name "hplaptop" -DisplayName "hplaptop" -Direction Inbound -VMCreatorId '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -Protocol TCP -LocalPorts 80
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
Set-NetFirewallRule -DisplayName "Allow Web 443" -RemoteAddress 172.28.23.198
Set-NetFirewallRule -DisplayName "Allow Web 80" -RemoteAddress 172.28.23.198
Set-NetFirewallRule -DisplayName "Allow Web 80" -RemoteAddress 192.168.0.2
Set-NetFirewallRule -DisplayName "Allow Web 80" -RemoteAddress 192.168.1.32
Test-NetConnection -ComputerName google.com -Port 80
Test-NetConnection -ComputerName www.example.com -Port 80 -InformationLevel Detailed
Test-NetConnection -ComputerName`
Test-NetConnection 127.0.0.1 22
Test-NetConnection 191.168 1.28
Test-NetConnection 192.168,1.28
Test-NetConnection 192.168.1.28
Test-NetConnection 192.168.1.28 22
Test-NetConnection 192.168.1.28:22
Uninstall-Package -name sysinternals
Update-Help
Write-Output "This will be redirected"
c:\windows\SYSTEM32\cleanmgr.exe /d C:
cat 'C:\ProgramData\Package Cache\'
cat .\.wslconfig
cat .\ConsoleHost_history.txt
cat .\ConsoleHost_history.txt > 'C:\Users\stevee\Desktop\PShell Commands.txt'
cat .\GPReport.html
cat .\GetAlias.txt
cat .\GetAlias.txt -10
cat .\GetAlias.txt -head 10
cat .\GetAlias.txt head 10
cat .\GetChildItem.txt
cat .\file.txt
cat C:\ProgramData\ssh\sshd_config
cd
cd
cd %userprofile%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\
cd '..\Google Course\'
cd '.\Desktop\Google Course\'
cd 'C:\Program Files (x86)\'
cd 'C:\Users\stevee\Desktop\Google Course\'
cd 'C:\Users\stevee\Desktop\Google Course\DU\'
cd ..
cd ..GoogleCourse
cd ..\GoogleCourse
cd .\DU\
cd .\Desktop\Crossway\
cd .\MyData\
cd .\MyData\Me
cd .\TEFL\Me\
cd C:
cd C:\
cd C:\MyData\Win10Apps\ookla-speedtest-1.2.0-win64\
cd C:\Program Files
cd C:\Program Files (x86)\Nmap\zenmap\
cd C:\Program Files (x86)\Nmap\zenmap\bin
cd C:\Users\stevee\AppData\Roaming\Microsoft\Windows\"Start Menu"\Programs\Nmap
cd C:\Users\stevee\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\
cd C:\Users\stevee\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Nmap
cd C:\Users\stevee\Desktop\Crossway\
cd C:\Users\stevee\Downloads
cd Me
cd MyData\Me
cd Nmap\zenmap\bin
cd \MyData\Me
cd \Nmap\zenmap\bin
cd c:
cd g:
cd ~
cd ~\GoogleCourse
cd..
chkdisk /F c:
chkdsk /f
choco source add -n "SourceName" -s Source �?ttps://community.chocolatey.org/api/v2/�
choco upgrade chocolatey
cmd /?
cmd /?
cmd /? | cat
cmd /? | cat
cmd /? | cat > CmdHelp.txt
cmd /? | more
del '.\My XD\'
del .\WinCommands.txt
del .\newdir\
detail disk
dir | findstr -N
dir | findstr -N *
dir | findstr -N *.*
dir | findstr -N "steve"
dir | findstr -i "Energy"
dir | findstr -i "Energy" "wlan"
dir | findstr -i "steve"
dir | findstr -i "steve" | find "BT"
dir | findstr -i "steve" | find -c "BT"
dir | findstr -i "wlan"
dir | findstr -i "wlan", "energy"
diskpart
exit
explorer.exe
findstr "A" .\AcLayers.dll
findstr "Stephen"
findstr "Stephen" *.docx
findstr "Steve" '.\Steve Edwards Tech + Teaching.docx'
findstr "Steve" *.docx
findstr "wlan" .\AcLayers.dll
findstr wlan *.dll
findstr wlan wlan.dll
fsutil.exe repair query c:
gc .\GetAlias.txt
google.com -Port 80
gpresult
gpupdate
gtz
help "redirection"
help about_Redirection
help icacl
help icacl /?
help.exe "cat /?"
help.exe "cat"
help.exe /?
help.exe cat
help.exe file
help.exe help
help.exe less
help.exe more
help.exe read
history
history > WinCommands.txt
icacl /?
icacl help
icacls 'C:\Users\stevee\Desktop\+507 65779120⬀.txt'
icacls /?
icacls C:\User\stevee\Desktop
icacls C:\Users\stevee\Desktop\
ipconfig
ipconfig.exe
ld C:\
less .\GetAlias.txt
linux
ls
ls --force
ls --force C:
ls --force C:\
ls --force C:\MyData\
ls --forcw C:\
ls -a ~
ls -a ~
ls -force C:\
ls C:\
ls X:
ls X:\stevee\
ls Xx:
ls Z:
ls ~
ls ~ -a
ls ~ -l
man
man /?
man /? > GetHelp.txt
mkdir "my folder"
mkdir "my folder2"
mkdir My` XD
mkdir My´ Test
more .\GPReport.html
more .\GetAlias.txt
more .\GetAlias.txt -10
more .\GetAlias.txt -head 10
net .\config\
net share
net share MeShare=C:\MyData\Me
net share MeShare=C:\MyData\TEFL\Me
net use <Z>: \\<BabyHP>\<varwww> /user:<stevee> <pooppoop>`
net use C:\BabyHPHomes \\BabyHP\homes /user:stevee pooppoop
net use X: /delete
net use X: \\BabyHP\homes /user:stevee pooppoop
net use X: \\BabyHP\varwww pooppoop /persistent:yes
net use Z:
net use Z: /delete
net use Z: \\BabyHP\homes stevee pooppoop
net use Z: \\BabyHP\homes\ pooppoop
net use Z: \\BabyHP\homes\ pooppoop /persistent:yes
net use Z: \\BabyHP\homes\ pooppoop /persistent=yes
net use Z: \\BabyHP\homes\ stevee pooppoop
net use Z: \\BabyHP\varwww /user:stevee pooppoop
net use Z: \\abyHP\varwww /user:stevee pooppoop
net user
net user
net user andrea * /add
net user andrea /add
net user andrea /del
net user andrea* /add
net user tom /add
netsh advfirewall firewall show rule name=all | findstr "Allow Web 80"
netsh advfirewall firewall show rule name=all | findstr "localport=80"
netsh bridge show adapter
netsh interface portproxy add v4tov4 listenport=443 listenaddress=0.0.0.0 connectport=80 connectaddress=192.168.1.28
netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=172.28.16.1
netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=172.28.23.198
netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=192.168.1.28
netsh interface portproxy add v4tov4 listenport=<80> listenaddress=0.0.0.0 connectport=<80> connectaddress=(192.168.1.28)
netsh interface portproxy add v4tov4 listenport=<80> listenaddress=0.0.0.0 connectport=<80> connectaddress=(wsl hostname -I)
netsh interface portproxy add v4tov4 listenport=<80> listenaddress=0.0.0.0 connectport=<80> connectaddress=(wsl hplaptop -I)
netsh interface portproxy show all
nmap
nmap.exe 192.168.1.28
nmap.exe hplaptop
nmap.exe hplaptop -p 3306
nmap.exe hplaptop -p 80
nuget install chocolatey
pathping
pathping bbc.com
pathping www.databasejoe.com
ping 10.10.10.1
ping 192.168.1.28
ping ::1
ping bbc.co.uk
powershell.exe
pscp.exe
pscp.exe -h
pscp.exe -v .\@VpnToastIcon.png stevee@localhost:
pscp.exe stevee@localhost
sfc
sfc /scannow
sfc /scannow`
ssh stevee@172.28.16.1
ssh stevee@192.168.1.28
ssh stevee@hplaptop
ssh stevee@localhost
ssh.exe
ssh.exe 127.0.0.1
start notepad .\GPReport.html
taskkill /f /fi "USERNAME eq NT AUTHORITY\SYSTEM" /im notepad.exe
taskkill /f /fi "USERNAME eq NT AUTHORITY\stevee" /im notepad.exe
taskkill /f /fi "stevee eq NT AUTHORITY\SYSTEM" /im notepad.exe
taskkill /f /im explorer.exe
taskkill /f /im explorer.exe & explorer.exe
taskkill /pid 13660
tasklist
tasklist /FI
tasklist /FI stevee
tasklist /FI workgroup\stevee
tasklist /fi "USERNAME ne NT AUTHORITY\SYSTEM" /fi "STATUS eq running"
tasklist /v
tasklist /v /fi "STATUS eq running"
tasklist | Measure-Object -(Line).count
tasklist | Measure-Object -Line
tasklist | Measure-Object -Line).count
tasklist | Measure-Object -Line.count
tasklist | findstr /B /I note
tree
type .\GetAlias.txt
type .\GetChildItem.txt
w32tm /resync
whoami
wsl
wsl --install -d Ubuntu
wsl --list --verbose
wsl --set-default-version 2
wsl -l -v
wsl.exe --install Ubuntu
wsl.exe hostname -I