// Learn
// Sandbox
// Reference
PS>_
EXTREME SHELL MASTERY
PowerShell pipelines, CMD forensics, BAT automation wizardry, remote execution, registry hacking, scheduled tasks, and the commands that make sysadmins look like wizards.
SCRIPT
Output stdout://
SHELL QUICK REFERENCE
// PowerShell · CMD · BAT — Extreme Commands
CommandShellLevelPurpose
Invoke-WebRequestPSRareFull HTTP client — GET/POST/headers/sessions
Get-WmiObjectPSEpicQuery hardware, OS, processes via WMI
Invoke-CommandPSLegendRun commands on remote machines via WinRM
Start-Job / Receive-JobPSLegendBackground jobs — parallel execution
Where-Object / ForEach-ObjectPSRarePipeline filtering and transformation
Select-Object / Sort-ObjectPSRareShape and sort pipeline objects
Export-Csv / Import-CsvPSRareRead/write structured CSV data
ConvertTo-Json / ConvertFrom-JsonPSRareJSON serialization in pipeline
Register-ScheduledTaskPSEpicCreate Windows scheduled tasks
New-ItemProperty (Registry)PSLegendRead/write Windows registry
Get-EventLog / Get-WinEventPSEpicQuery Windows event logs
Start-TranscriptPSRareRecord full session to log file
Measure-ObjectPSRareSum, average, min, max of pipeline values
Set-ExecutionPolicyPSRareControl script execution security policy
$ErrorActionPreferencePSEpicControl error handling behavior globally
Try/Catch/FinallyPSRareStructured exception handling
for /f "tokens=..."CMDLegendParse text/command output line by line
wmicCMDEpicWMI from CMD — query system info
netshCMDLegendFull network config — firewall, WiFi, interfaces
schtasks /createCMDEpicSchedule tasks from CMD
reg add / reg queryCMDLegendRegistry operations from CMD
tasklist /svcCMDRareList processes with their services
findstr /r /sCMDEpicRegex search across files recursively
robocopyCMDLegendRobust file copy with retry, mirror, exclude
cipher /e /dCMDMasterEFS file encryption/decryption
call :label / gotoBATRareSubroutines and flow control in batch
setlocal enabledelayedexpansionBATLegendDynamic variables inside loops
for /l %%i in (1,1,10)BATEpicNumeric counter loops in batch
%~dp0 / %~nx0BATLegendScript path magic variables
errorlevelBATEpicExit code checking and branching
xcopy /e /h /iALLRareDeep copy with hidden files and folders
Foreach-Object -ParallelPSMasterTrue parallel execution (PS 7+)
diskpartCMDMasterDisk partition management scripted
winrm quickconfigCMDMasterEnable remote PowerShell management
icaclsALLLegendAdvanced NTFS permission management
bcdeditCMDMasterBoot configuration data editor
Get-Acl / Set-AclPSLegendRead/write file and registry permissions
Test-NetConnectionPSRareAdvanced network connectivity & port tests
netstat -anoALLRareAll connections with owning process IDs
sc config / sc createCMDLegendCreate and configure Windows services
Compress-Archive / Expand-ArchivePSRareZip/unzip without external tools