Command Prompt Not Opening


  1. Posts : 65
    Windows 10
       #1

    Command Prompt Not Opening


    Recently attempting to open Command prompt, ordinary or as administrator, it flashes for perhaps 2 seconds and then disappears. I tried the following commands
    sfc /scannow
    DISM /Online /Cleanup-Image /RestoreHealth
    But none of these seem to work, I'm wondering if there are any fixes for this issue
      My Computer


  2. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #2

    Open administrative powershell and type or copy and paste:
    1) sfc /scannow
    2) dism /online /cleanup-image /scanhealth
    3) dism /online /cleanup-image /restorehealth
    4) chkdsk /scan
    5) When these have completed > right click on the top bar or title bar of the administrative command prompt box > left click on edit then select all > right click on the top bar again > left click on edit then copy > paste into the thread
      My Computer


  3. Posts : 9
    Windows 10
       #3

    Hi,
    Using Powershell as admin write command : Repair-WindowsImage -Online -RestoreHealth and click on Enter
    If this doesn't help you can try another method:
    From Run, type winver and press enter
    If you on version 1709, try this: Repair Install Windows 10 with an In-place Upgrade Windows 10 Tutorials
    If you on version prior to version 1709, donwload the upgrade assistant: Download Windows 10
      My Computer


  4. Posts : 65
    Windows 10
    Thread Starter
       #4

    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.

    PS C:\WINDOWS\system32> sfc /scannow

    Beginning system scan. This process will take some time.

    Beginning verification phase of system scan.
    Verification 100% complete.

    Windows Resource Protection did not find any integrity violations.
    PS C:\WINDOWS\system32> dism /online /cleanup-image /scanhealth

    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15

    Image Version: 10.0.16299.334

    [==========================100.0%==========================] No component store corruption detected.
    The operation completed successfully.
    PS C:\WINDOWS\system32> dism /online /cleanup-image /restorehealth

    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15

    Image Version: 10.0.16299.334

    [==========================100.0%==========================] The restore operation completed successfully.
    The operation completed successfully.
    PS C:\WINDOWS\system32> chkdsk /scan
    The type of the file system is NTFS.

    Stage 1: Examining basic file system structure ...
    333312 file records processed.
    File verification completed.
    13924 large file records processed.
    0 bad file records processed.

    Stage 2: Examining file name linkage ...
    22132 reparse records processed.
    406088 index entries processed.
    Index verification completed.
    0 unindexed files scanned.
    0 unindexed files recovered to lost and found.
    22132 reparse records processed.

    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    36389 data files processed.
    CHKDSK is verifying Usn Journal...
    37900504 USN bytes processed.
    Usn Journal verification completed.

    Windows has scanned the file system and found no problems.
    No further action is required.

    116640767 KB total disk space.
    39895664 KB in 163528 files.
    121820 KB in 36390 indexes.
    0 KB in bad sectors.
    446511 KB in use by the system.
    65536 KB occupied by the log file.
    76176772 KB available on disk.

    4096 bytes in each allocation unit.
    29160191 total allocation units on disk.
    19044193 allocation units available on disk.
    PS C:\WINDOWS\system32>
      My Computer


  5. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #5

    When you open administrative command prompt now how does it respond?
    What is/are the methods that you are using to open administrative command prompt?
      My Computer


  6. Posts : 65
    Windows 10
    Thread Starter
       #6

    I used MediaCreationTool update and nothing
    Look and video screen: Zippyshare.com - 20180406_1941_48.avi
      My Computer


  7. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #7

    Malwarebytes blocks opening the download to view the video.
    Please use one drive or drop box or google links so that there is less likely to have malware, PUPs, etc.
    Malwarebytes: Website blocked due to malvertising
      My Computer


  8. Posts : 65
    Windows 10
    Thread Starter
       #8

    https://drive.google.com/open?id=1CcDYT7YROUFGYP9_d7w3xA8BK0dt9vg7

    System not repair: C:/Windows/system32/logs/SrtTrail.txt

    Startup Repair diagnosis and repair log
    ---------------------------
    Last successful boot time: ‎06.‎04.‎2018 17:20:12 (GMT)
    Number of repair attempts: 2

    Session details
    ---------------------------
    System Disk = \Device\Harddisk0
    Windows directory = C:\WINDOWS
    AutoChk Run = 0
    Number of root causes = 1

    Test Performed:
    ---------------------------
    Name: Check for updates
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System disk test
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Disk failure diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 125 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code = 0x0
    Time taken = 63 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Target OS test
    Result: Completed successfully. Error code = 0x0
    Time taken = 31 ms

    Test Performed:
    ---------------------------
    Name: Volume content check
    Result: Completed successfully. Error code = 0x0
    Time taken = 16 ms

    Test Performed:
    ---------------------------
    Name: Boot manager diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System boot log diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Event log diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Internal state check
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Check for pending package install
    Result: Completed successfully. Error code = 0x0
    Time taken = 2406 ms

    Test Performed:
    ---------------------------
    Name: Boot status test
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Root cause found:
    ---------------------------
    Boot status indicates that the OS booted successfully.

    ---------------------------
    ---------------------------
    Session details
    ---------------------------
    System Disk = \Device\Harddisk0
    Windows directory = C:\WINDOWS
    AutoChk Run = 0
    Number of root causes = 1

    Test Performed:
    ---------------------------
    Name: Check for updates
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System disk test
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Disk failure diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 125 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code = 0x0
    Time taken = 2235 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code = 0x0
    Time taken = 15 ms

    Test Performed:
    ---------------------------
    Name: Target OS test
    Result: Completed successfully. Error code = 0x0
    Time taken = 16 ms

    Test Performed:
    ---------------------------
    Name: Volume content check
    Result: Completed successfully. Error code = 0x0
    Time taken = 203 ms

    Test Performed:
    ---------------------------
    Name: Boot manager diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System boot log diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Event log diagnosis
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Internal state check
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Check for pending package install
    Result: Completed successfully. Error code = 0x0
    Time taken = 2656 ms

    Test Performed:
    ---------------------------
    Name: Boot status test
    Result: Completed successfully. Error code = 0x0
    Time taken = 0 ms

    Root cause found:
    ---------------------------
    Boot status indicates that the OS booted successfully.
    Last edited by Detonate; 06 Apr 2018 at 12:58.
      My Computer


  9. Posts : 65
    Windows 10
    Thread Starter
       #9

    Nothing no work. Back-up old restored. Problem gone!
      My Computer


  10. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #10

    It's good to have a backup.
    Glad that it got sorted out.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:15.
Find Us




Windows 10 Forums