Windows Quick Commands and Tips
Windows Quick Commands and Tips
Get file hash
Get-FileHash .\rhel-server-7.9-x86_64-dvd.iso -Algorithm SHA256 |
Get hardware information
wmic memorychip get DeviceLocator,Manufacturer,PartNumber,Speed,Capacity |
Change the RDP listener port
① Open the registry and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.
② Change PortNumber value.

③ After you change the port number, restart the Remote Desktop Services service.
④ Firewall enable the RDP port.
Disable Windows 10/11 Updates
services.msc -> Windows Updates -> Disabled
gpedit.msc -> Windows Update -> Configure Automatic Updates -> Disabled
Replaces ACLs with default inherited ACLs for all matching files
ICACLS [dir] /RESET [/T] [/C] [/L] [/Q]
Find which process in using TCP or UDP port and terminate it
netstat -ano | findstr "7890" |
Quick command to access Network Control Panel
ncpa.cpl
Managing user accounts
netplwiz
Windows 10/11 bypass online mircosoft account
Press Shift + F10, type OOBE\BYPASSNRO, on 25H2 and newer, type start ms-cxh:localonly.
Windows 11 bypass TPM or CPU
① Press Shift + F10, type regedit.
② Find HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup, New DWORD (32-bit) Value, name AllowUpgradesWithUnsupportedTPMOrCPU, data 1.
③ Find HKEY_LOCAL_MACHINE\SYSTEM\Setup, New Key LabConfig.
④ Find HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig, New DWORD (32-bit) Value, name BypassTPMCheck and BypassSecureBootCheck, data 1.
reg add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f |
System Fix
DISM /Online /Cleanup-image /Checkhealth |
ROBOCOPY
# include empty, retry wait 5s, restartable mode, 32 multi-threaded |