List of commands (highlights rows is often used):

				
					ipconfig - Displays IP configuration information
ping - Tests network connectivity
tracert - Traces the route packets take to reach a destination
netstat - Displays active network connections
nslookup - Queries DNS to resolve hostnames and IP addresses
sfc /scannow - Scans system files for errors and attempts to repair them
chkdsk - Checks a disk for errors and attempts to repair them
systeminfo - Displays system information
gpupdate /force - Forces a Group Policy update
net user - Displays or modifies user account information
tasklist - Displays a list of currently running processes
taskkill - Terminates a running process
whoami - Displays the current user and domain information
hostname - Shows the host name of the computer
mkdir - Creates a new directory
rmdir - Removes an existing directory
copy - Copies files from one location to another
xcopy - Copies files and directories, including subdirectories
robocopy - Advanced file copy utility with more options than xcopy
move - Moves files from one location to another
ren - Renames a file or directory
del - Deletes files
dir - Lists the contents of a directory
cd - Changes the current directory
cls - Clears the command prompt screen
echo - Displays text on the screen or controls command echoing
find - Searches for text within a file
findstr - Searches for text patterns in files
fc - Compares two files and displays differences
type - Displays the contents of a text file
assoc - Displays or modifies file extension associations
ftype - Displays or modifies file type associations with programs
attrib - Displays or modifies file attributes
reg - Manipulates the Windows Registry
gpresult /r - Displays Group Policy settings applied to a user or computer
schtasks - Schedules tasks to run at specified times or events
shutdown - Shuts down, restarts, or logs off the computer
dism - Manages Windows features, packages, and drivers
set - Displays, sets, or removes environment variables
netsh - Configures network settings
arp - Displays and modifies the IP-to-Physical address translation tables
getmac - Displays the MAC address of your network interfaces
pathping - Combines ping and tracert to provide more detailed network diagnostics
route - Displays and modifies the IP routing table
nbtstat - Displays NetBIOS over TCP/IP (NBT) statistics
net view - Lists available computers on the network
net use - Maps network drives and displays active connections
net localgroup - Displays or modifies local group information
net start - Displays or starts network services
net stop - Stops network services
sc - Manages Windows services
driverquery - Displays information about installed device drivers
wmic - Windows Management Instrumentation Command-line utility
color - Changes the color scheme of the Command Prompt
title - Changes the title of the Command Prompt window
ver - Displays the Windows version and build number
prompt - Changes the appearance of the command prompt
time - Displays or sets the system time
date - Displays or sets the system date
sort - Sorts input from files or the command line
tree - Displays the directory structure in a graphical format
compact - Displays or alters the compression of files and directories
convert - Converts FAT volumes to NTFS
cipher - Displays or alters the encryption of directories and files
subst - Associates a path with a drive letter
diskpart - Disk partition management tool
powercfg - Configures power settings and profiles
msconfig - System configuration utility
gpedit.msc - Group Policy editor
eventvwr.msc - Event viewer
devmgmt.msc - Device manager
services.msc - Services manager
cleanmgr - Disk cleanup utility
perfmon.msc - Performance monitor
resmon - Resource monitor
wevtutil - Windows Event Log utility
sfc /verifyonly - Scans system files for errors without repairing
mstsc - Remote Desktop Connection
systempropertiesremote - Opens System Properties for remote settings
control - Opens the Control Panel
telnet - Establishes a connection to a remote computer using the Telnet protocol
ftp - Connects to a remote FTP server for file transfers
tftp - Trivial File Transfer Protocol client
sdelete - Secure delete files or free space (Sysinternals utility)
net time - Displays or sets the network time
net session - Lists or disconnects sessions between the computer and remote computers
net send - Sends messages to users, computers, or messaging names on the network (deprecated in recent Windows versions)
openfiles - Displays or disconnects open files on a server
systempropertiesadvanced - Opens the System Properties dialog with the Advanced tab selected
lusrmgr.msc - Local Users and Groups Manager
dsquery - Queries Active Directory for objects based on criteria (available on domain-joined computers)
dsadd - Adds an object to Active Directory (available on domain-joined computers)
dsmod - Modifies an existing object in Active Directory (available on domain-joined computers)
gpresult /z - Displays more detailed Group Policy settings information
replace - Replaces files in the destination directory with files from the source directory
takeown - Takes ownership of a file or folder
icacls - Displays or modifies file and folder permissions (replaced cacls)
appwiz.cpl - Opens the Programs and Features window
diskmgmt.msc - Opens the Disk Management utility
cmdkey - Manages stored user names and passwords
				
			

Repair Windows:

  1. sfc /scannow

    • Scans and repairs system files. The System File Checker (SFC) utility checks for corrupted or missing system files and automatically replaces them with the correct version.
  2. DISM /Online /Cleanup-Image /RestoreHealth

    • Scans and repairs the Windows component store. The Deployment Image Servicing and Management (DISM) tool checks for inconsistencies and corruption in system files, then downloads and replaces damaged files from Windows Update.
  3. chkdsk /f

    • Checks and repairs disk errors. The Check Disk (CHKDSK) utility scans your hard drive for file system errors, bad sectors, and other issues, then attempts to fix them. Replace “/f” with “/r” to also locate bad sectors and recover readable information.
  4. bootrec /fixmbr

    • Repairs the Master Boot Record (MBR) on the system partition. This command is useful if you have issues with booting your computer. Note that you’ll need to run this command from a Windows 11 installation media, within the Command Prompt available on the troubleshooting options.
  5. bootrec /fixboot

    • Writes a new boot sector onto the system partition. Like the previous command, this should be run from a Windows 11 installation media.
  6. bootrec /rebuildbcd

    • Scans all disks for Windows installations and rebuilds the Boot Configuration Data (BCD) store. This command should also be run from a Windows 11 installation media.
  7. bcdedit

    • Manages the Boot Configuration Data (BCD) store. You can use this command to create, delete, and modify BCD settings.
  8. reg /import <backup_file.reg>

    • Restores registry entries from a backup .reg file. Replace “<backup_file.reg>” with the path to your backup file.
 
Social Share: