Table of Contents
systeminfo
Displays detailed system configuration, OS version, and patch level.
hostname
Shows the system’s network name.
whoami
Displays the currently logged-in user and domain context.
ipconfig /all
Displays full IP configuration, including DNS and DHCP details.
ipconfig /flushdns
Clears the DNS resolver cache.
ping <hostname>
Tests network connectivity and latency.
tracert <hostname>
Traces the network path to a destination.
nslookup <hostname>
Performs DNS queries and troubleshooting.
netstat -ano
Displays active connections with associated process IDs.
runas /u:MicrosoftAccount\youremail@address.com cmd.exe
Run this command if RDP isn't working with a Microsoft account. It forces windows to cache your Microsoft account credentials as being a valid account on the PC.
chkdsk
Checks disk integrity.
sfc /scannow
Scans and repairs protected system files.
net user
Lists local user accounts.
net user <username>
Displays details for a specific user.
net localgroup administrators
Lists members of the local Administrators group.
whoami /groups
Displays security group memberships.
runas /user:<domain\user> cmd
Launches a command prompt under alternate credentials.
shutdown -r -t 0
Immediately reboots the system.
shutdown -s -t 0
Immediately shuts down the system.
shutdown -m \\COMPUTERNAME
Shutdown remote computer named COMPUTERNAME
shutdown /a
Aborts a pending shutdown or reboot.
net stop wuauserv
cd /d %windir%
rd /s SoftwareDistribution
net start wuauserv
Get-CimInstance Win32_BIOS
Displays BIOS information & Serial Number/Service Tag
Get-CimInstance Win32_Processor
Displays CPU information
winget update --all
Checks for updates for all supported applications