CMD - Power Shel Commands
CMD - Power Shel Commands
https://ss64.com
Evaluate expressions
Using brackets to Group and expand expressions.
Delayed Variables within loops.
Expansion
Escape chars delimiters and quotes
SET /A Environment variable arithmetic.
VarSubstring Extract part of a variable (substring).
VarSearch Search & replace part of a variable.
RANDOM Random Numbers.
Wildcards Match multiple files.
Shortcuts
Keyboard shortcuts For CMD, PowerShell and Windows.
RUN commands Start | Run commands.
MMC Snap-ins Admin commands.
ms-settings Shortcuts to settings.
Shell: folder Shortcuts to key folders.
ProfileFolders User profile folders: Start Menu, Roaming
etc.
Reference/How to
ANSI colors Use ANSI colors in the Windows 10 terminal.
Autoexec Run commands at startup.
CMD Shell Working in the Windows CMD shell.
CMD Internal Commands that are Internal to the CMD shell.
Compatibility Backwards compatibility - runas admin / color
Errorlevel CMD's handing of Exit codes and the %ERRORLEVEL% variable.
Error Handling Loop on error in a batch file.
Slow Browsing Speed up network browsing.
LAN Mgr auth NTLM authentication.
Logon Types Windows Logon types.
Long NTFS long filename issues (>256 chars).
Filenames
Display DPI Monitor size settings.
Share modes An explanation of File sharing modes.
File Shares Organising shared files.
NoDrives Hide mapped drives from Windows Explorer.
% vs %% Why you need to double the %'s in a batch file.
Printing Printer connections and print drivers.
Recovery The Windows Recovery Environment (WinRE), Safe mode and Win
PE.
Reg Tweaks Registry tweaks and settings.
BuiltIn Groups Built-In Users and Security Groups.
AD Groups Local Domain groups, Global and Universal groups.
64Bit Detect 64 bit vs 32 bit Windows.