Cmd closes immediately windows 10. Also gives you one way to back up your system to prevent data loss. Aug 30, 2022 · I have executed sfc /scannow using PowerShell, tried the Rkill code, items are being corrected using these fixes, but not the problem with the cmd prompt 'open then close' issue. A scheduled task for Microsoft Office might be running in the background leading to CMD flash momentarily on the screen. Jan 31, 2026 · It tells Windows to shutdown after 10 seconds. I am the administrator, so I use 'run as administrator'. Feb 26, 2025 · Sometimes, 2 or 3 CMD windows may open and close quickly (like 2-3 seconds) during Windows startup. It steals focus and minimizes the window that I'm on if it's in Fullscreen. If you want to shut down immediately, change the command to -t 0. You’ll need to know which program ran just to make sure that it’s not malware. It doesn't matter whether I trigger cmd using the Windows + R key, calling from Start, etc.