You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.0 KiB

Network Reset

Run the following command in an elevated Command Prompt:

ipconfig /flushdns && ipconfig /release && ipconfig /renew && ipconfig /registerdns && netsh winsock reset && shutdown /r

This will, in order:

  1. Flush the DNS Records
  2. Release the IP Address
  3. Renew the IP Address
  4. Re-registers the DNS Records
  5. Resets the Winsock Catalog (requires a reboot after)
  6. Restarts the PC

Be cautious if running these commands while remotely connecting to another computer. The "&&" operator tells CMD to run the commands one after the other. If you run them one at a time instead, you will lose connection to the computer before you can complete the rest. It might be best to have someone on the other end in case you lose connection, or the computer does not regain connection after the restart.


Clear Recycle Bin for All Users

Run in an elevated Command Prompt:

rd /s /q c:\$Recycle.Bin

Delete Windows Search db

Run in an elevated Command Prompt:

net stop "Windows Search"
del %PROGRAMDATA%\Microsoft\Search\Data\Applications\Windows\Windows.edb
net start "Windows Search"

SFC & DISM Commands

The following commands will repair/replace corrupted/missing system files, as well as clear up disk space. They must all be ran in an elevated Command Prompt:

sfc /scannow

If it reports no issues found or all issues fixed, you are done. or, optionally skip to Step 6. Otherwise, continue to Step 2.

DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
  1. Repeat Step 1

Note: the following optional steps will free up disk space, but also remove files allowing uninstallation of Windows Updates

DISM /Online /Cleanup-Image /AnalyzeComponentStore

If prompted to reboot, do so

DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase