Command Center

Windows Command Center

A searchable Command Prompt reference. Every entry explains what the command does, how to run it and what to watch out for — in plain English.

DM TECH never runs commands on your PC. Every command here is reference text you copy and run yourself, in a window you control. Read what a command does before running it, and back up important data first.

32 commands

systeminfo

System Information

Prints a detailed summary of the machine: Windows edition and build, install date, BIOS version, installed memory, network cards and applied hotfixes.

systeminfo

How to run it

  1. 1.Press Start, type cmd and open Command Prompt.
  2. 2.Type the command and press Enter.
  3. 3.Wait a few seconds — the report is gathered live.

Example

systeminfo | more

Pipe through more to read the output one page at a time.

Works on: Windows 10 · Windows 11

Read the full DM TECH tutorial

winver

System Information

Opens the About Windows dialog showing the Windows edition, version and OS build number.

winver

How to run it

  1. 1.Press Windows + R.
  2. 2.Type winver and press Enter.
  3. 3.Read the version and build line.

Example

winver

Works on: Windows 10 · Windows 11

tasklist

System Information

Lists every running process with its PID, session and memory usage.

tasklist

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run tasklist to see all processes.
  3. 3.Add a filter to narrow the list to what you are investigating.

Example

tasklist /fi "MEMUSAGE gt 200000"

Shows only processes using more than roughly 200 MB.

Works on: Windows 10 · Windows 11

taskkill

System InformationAdministrator required

Ends a running process by name or PID. /F forces termination.

taskkill /IM <process.exe> /F

How to run it

  1. 1.Run tasklist first to confirm the exact process name or PID.
  2. 2.Open Command Prompt as administrator if the process belongs to another user.
  3. 3.Run taskkill with /IM (image name) or /PID.

Example

taskkill /IM notepad.exe /F

Works on: Windows 10 · Windows 11

Before you run this

Force-closing a process discards unsaved work and can destabilise Windows if you end a system process. Never end processes you cannot identify.

powercfg /batteryreport

System InformationAdministrator required

Generates an HTML battery report covering design capacity, current full-charge capacity and recent usage history.

powercfg /batteryreport

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run the command.
  3. 3.Open the HTML file from the path printed in the output.

Example

powercfg /batteryreport /output C:\Users\Public\battery.html

Works on: Windows 10 · Windows 11 laptops with a battery

Read the full DM TECH tutorial

powercfg /energy

System InformationAdministrator required

Runs a 60-second trace and reports power-efficiency problems, such as devices blocking sleep.

powercfg /energy

How to run it

  1. 1.Close what you can and leave the PC idle.
  2. 2.Open Command Prompt as administrator and run the command.
  3. 3.Open the generated energy-report.html.

Example

powercfg /energy

Works on: Windows 10 · Windows 11

ipconfig

Networking

Shows the IP configuration of every network adapter: IP address, subnet mask, gateway, DNS servers, MAC address and DHCP status.

ipconfig /all

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run ipconfig for a short summary or ipconfig /all for full detail.
  3. 3.Check whether the adapter has a valid address and gateway.

Example

ipconfig /all

Works on: Windows 10 · Windows 11

Read the full DM TECH tutorial

ipconfig /flushdns

NetworkingAdministrator required

Clears the local DNS resolver cache so name lookups are fetched fresh from your DNS server.

ipconfig /flushdns

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run the command — it completes instantly.
  3. 3.Retry the site or service that was failing.

Example

ipconfig /flushdns

Works on: Windows 10 · Windows 11

Before you run this

This fixes stale DNS entries only. It does not repair a broken connection or a down DNS server.

netsh winsock reset

NetworkingAdministrator required

Resets the Winsock catalog to its default state, removing third-party layered service providers that can break connectivity.

netsh winsock reset

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run the command.
  3. 3.Restart the PC — the reset only applies after a restart.

Example

netsh winsock reset

Works on: Windows 10 · Windows 11

Before you run this

Requires a restart. VPN clients and some security software may need to be reinstalled or reconfigured afterwards.

Read the full DM TECH tutorial

netsh int ip reset

NetworkingAdministrator required

Rewrites the TCP/IP stack registry keys back to their defaults.

netsh int ip reset

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run the command.
  3. 3.Restart the PC.

Example

netsh int ip reset

Works on: Windows 10 · Windows 11

Before you run this

Static IP settings are cleared. Note them down first if the PC does not use DHCP.

netsh wlan show profiles

Networking

Lists the saved Wi-Fi profiles on the machine.

netsh wlan show profiles

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run the command to list saved networks.
  3. 3.Use the profile name with other netsh wlan commands to inspect or delete it.

Example

netsh wlan delete profile name="OldNetwork"

Removes a saved network so Windows can join it fresh.

Works on: Windows 10 · Windows 11 with a Wi-Fi adapter

ping

Networking

Sends ICMP echo requests to a host and reports reply times and packet loss.

ping <host>

How to run it

  1. 1.Ping your gateway first to test the local network.
  2. 2.Then ping a public IP address to test internet routing.
  3. 3.Finally ping a hostname to test DNS.

Example

ping -n 10 8.8.8.8

Ten packets to a public DNS server. Loss or high latency points at the connection, not the PC.

Works on: Windows 10 · Windows 11

Before you run this

Some hosts block ICMP, so no reply does not always mean the host is down.

tracert

Networking

Traces the route packets take to a destination and shows the latency of each hop.

tracert <host>

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run tracert followed by a hostname or IP.
  3. 3.Look for the hop where latency jumps or replies stop.

Example

tracert example.com

Works on: Windows 10 · Windows 11

nslookup

Networking

Queries DNS for a hostname and shows which server answered.

nslookup <host>

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run nslookup with the hostname.
  3. 3.Optionally add a DNS server to compare answers.

Example

nslookup example.com 1.1.1.1

Asks a specific public resolver, which helps confirm whether your own DNS is the problem.

Works on: Windows 10 · Windows 11

netstat

NetworkingAdministrator required

Lists active connections and listening ports with the owning process ID.

netstat -ano

How to run it

  1. 1.Open Command Prompt as administrator for complete results.
  2. 2.Run netstat -ano.
  3. 3.Match the PID column against Task Manager or tasklist.

Example

netstat -ano | findstr :443

Works on: Windows 10 · Windows 11

sfc /scannow

Windows RepairAdministrator required

Scans protected Windows system files and replaces corrupted copies from the local component store.

sfc /scannow

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run sfc /scannow and leave the window open until it reaches 100%.
  3. 3.Read the summary line — it states whether repairs were made.

Example

sfc /scannow

Works on: Windows 10 · Windows 11

Before you run this

If SFC reports files it could not repair, the component store itself is damaged — run DISM /RestoreHealth first, then repeat SFC.

Read the full DM TECH tutorial

DISM /RestoreHealth

Windows RepairAdministrator required

Repairs the Windows component store, which is the source SFC uses for replacements. Files are downloaded through Windows Update.

DISM /Online /Cleanup-Image /RestoreHealth

How to run it

  1. 1.Connect the PC to the internet and keep it plugged in.
  2. 2.Open Command Prompt as administrator.
  3. 3.Run the command and wait — it can pause at 20% for several minutes.
  4. 4.Run sfc /scannow afterwards.

Example

DISM /Online /Cleanup-Image /ScanHealth

ScanHealth only reports damage without changing anything — useful as a first check.

Works on: Windows 10 · Windows 11

Before you run this

Needs a working internet connection unless you supply an offline source with /Source.

Read the full DM TECH tutorial

chkdsk

Disk ManagementAdministrator required

Checks a volume for file-system errors and, with /r, locates bad sectors and recovers readable information.

chkdsk C: /f /r

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run the command for the drive letter you want to check.
  3. 3.Accept the prompt to schedule the scan on the next restart for the system drive.

Example

chkdsk D: /f

Works on: Windows 10 · Windows 11

Before you run this

/r can take hours on a large drive and the volume is unavailable while it runs. Back up important data before checking a drive you suspect is failing.

Read the full DM TECH tutorial

diskpart

Disk ManagementAdministrator required

Opens the interactive disk partitioning tool used to list, select, create and format volumes.

diskpart

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run diskpart, then list disk and list volume to see what is attached.
  3. 3.Use select before any action so you are certain which disk you are working on.

Example

list disk

Run inside diskpart. Listing is read-only and safe.

Works on: Windows 10 · Windows 11

Before you run this

Diskpart can erase entire drives instantly and without an undo. Only run clean, format or delete commands when you are certain of the selected disk and have a backup.

cleanmgr

Disk Management

Opens Disk Cleanup, which removes temporary files, update leftovers and other reclaimable data.

cleanmgr

How to run it

  1. 1.Press Windows + R.
  2. 2.Type cleanmgr and press Enter.
  3. 3.Choose the drive, then optionally Clean up system files.

Example

cleanmgr /sageset:1

Saves a reusable cleanup selection you can later run with /sagerun:1.

Works on: Windows 10 · Windows 11

Read the full DM TECH tutorial

robocopy

File Management

Robust file copy tool that mirrors folders, resumes large transfers and preserves timestamps.

robocopy <source> <destination> /E

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run robocopy with a source, a destination and the switches you need.
  3. 3.Review the summary table it prints when it finishes.

Example

robocopy D:\Photos E:\Backup\Photos /E /R:2 /W:5

Copies all subfolders including empty ones, retrying twice with a five-second wait.

Works on: Windows 10 · Windows 11

Before you run this

/MIR mirrors a folder and deletes files in the destination that no longer exist in the source. Test with /L first to preview.

sc query

Services

Reports the current state of a Windows service.

sc query <servicename>

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run sc query with the service name.
  3. 3.Read the STATE line.

Example

sc query wuauserv

wuauserv is the Windows Update service.

Works on: Windows 10 · Windows 11

net stop / net start

ServicesAdministrator required

Stops and starts a Windows service — the standard way to restart a stuck service such as Windows Update or the print spooler.

net stop <servicename> && net start <servicename>

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Stop the service, wait for confirmation, then start it again.

Example

net stop spooler && net start spooler

Restarts the print spooler, which clears most stuck print queues.

Works on: Windows 10 · Windows 11

Before you run this

Stopping a service interrupts anything depending on it. Do not stop services you cannot identify.

driverquery

Drivers

Lists installed device drivers with their type, start mode and link date.

driverquery /v /fo table

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run driverquery with the formatting switches you prefer.
  3. 3.Export to CSV if you want to review it in a spreadsheet.

Example

driverquery /fo csv > C:\Users\Public\drivers.csv

Works on: Windows 10 · Windows 11

pnputil

DriversAdministrator required

Manages the Windows driver store: list, add, install and remove third-party driver packages.

pnputil /enum-drivers

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run pnputil /enum-drivers to list third-party packages and their published names.
  3. 3.Use the published name (oemXX.inf) with other pnputil actions.

Example

pnputil /add-driver C:\Drivers\network.inf /install

Works on: Windows 10 · Windows 11

Before you run this

Deleting a driver package the current hardware depends on can leave a device without a driver. Have the replacement package ready before removing anything.

bcdedit

Boot & RecoveryAdministrator required

Reads and edits the Boot Configuration Data store that controls how Windows starts.

bcdedit /enum

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run bcdedit /enum to view current boot entries.
  3. 3.Export a backup before changing anything.

Example

bcdedit /export C:\Users\Public\bcd-backup

Creates a restorable copy of the boot configuration.

Works on: Windows 10 · Windows 11

Before you run this

Incorrect BCD edits can make Windows unbootable. Always export a backup first and keep recovery media available.

shutdown

Boot & Recovery

Shuts down or restarts the PC. With /o it restarts into the Advanced Startup recovery options.

shutdown /r /o /t 0

How to run it

  1. 1.Save all work first.
  2. 2.Open Command Prompt.
  3. 3.Run the command — the restart is immediate with /t 0.

Example

shutdown /r /t 60 /c "Restarting for maintenance"

Restarts after 60 seconds with a message. Cancel with shutdown /a.

Works on: Windows 10 · Windows 11

Before you run this

Unsaved work is lost. /t 0 gives you no time to cancel.

manage-bde -status

SecurityAdministrator required

Reports BitLocker encryption status for each volume, including protection state and encryption method.

manage-bde -status

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run the command.
  3. 3.Check the Protection Status line for each volume.

Example

manage-bde -status C:

Works on: Windows 10 · Windows 11 editions that include BitLocker

Before you run this

Before changing encryption settings, make sure the recovery key is saved somewhere outside the encrypted drive.

Read the full DM TECH tutorial

gpupdate

SecurityAdministrator required

Reapplies Group Policy settings immediately instead of waiting for the next refresh interval.

gpupdate /force

How to run it

  1. 1.Open Command Prompt as administrator.
  2. 2.Run gpupdate /force.
  3. 3.Restart or sign out if prompted.

Example

gpupdate /force

Works on: Windows 10 · Windows 11 (domain or local policy)

net user

User Accounts

Lists local user accounts, or shows detail for one account including last logon and group membership.

net user

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run net user to list accounts.
  3. 3.Add an account name for details.

Example

net user Administrator

Works on: Windows 10 · Windows 11

Before you run this

Creating accounts or changing passwords with net user requires administrator rights and affects who can sign in to the PC.

net localgroup

User Accounts

Shows the members of a local group — most often used to confirm who has administrator rights.

net localgroup administrators

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run the command with the group name.
  3. 3.Review the member list.

Example

net localgroup administrators

Works on: Windows 10 · Windows 11

whoami

User Accounts

Reports the current user, their groups and their privileges in the running session.

whoami /all

How to run it

  1. 1.Open Command Prompt.
  2. 2.Run whoami for the account name or whoami /all for full detail.

Example

whoami /groups

Works on: Windows 10 · Windows 11