Command Prompt Pops Up and Closes in Windows 11? | Fix It Now

Fix 1. Perform a DISM Repair

  • DISM.exe /Online /Cleanup-image /Scanhealth
  • DISM.exe /Online /Cleanup-image /Restorehealth
  • DISM.exe /online /cleanup-image /startcomponentcleanup

Fix 2. Manually Add the Missing Environment Variable Path

Fix 3. Disable Any Office Tasks

Fix 4. Run a Full Virus Scan

Fix 5. Remove the Crypto-Mining AutorRun Registry key

Fix 6. Use the Task Scheduler

ABOUT THE AUTHOR

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store