Cmd.exe in System32 is not working anymore.

Solved

Hello everyone, I recently encountered a problem: my cmd.exe in the system32 folder isn't working. For example, if I press Windows + R and type CMD, I get an error message stating that the application is not available on the computer. However, I can indeed launch cmd.exe from another folder, C:\Windows\SysWOW64, which is where I find it. I've tried to copy the cmd.exe from the SysWOW64 folder to system32, but it says access denied, even when I run CMD as an administrator. I don’t understand how to resolve this issue.
I think the cmd.exe in SysWOW64 is 64-bit and the one in system32 is 32-bit, and that this might be the issue, but how can I get the one in system32 to work again?

I hope I have provided enough detail. If you need more information, please don’t hesitate to ask. Thank you to those who take the time to help me.

3 answers

  1. Moderator

    Hello,

    Error, SysWOW64 = 32-bit files

    The 64-bit files are in System32

    By right-clicking on the start button, use this command with Windows PowerShell (Admin)

    CHKDSK /F C:

    Respond Y for Yes to then restart Windows.

    Next

    Dism /Online /Cleanup-Image /RestoreHealth

    Next

    sfc /scannow

    To perform a more advanced update or repair without data loss, use the MediaCreationTool to download a Windows ISO file. For Windows 11 you can do it directly.

    Windows 11 if compatible, you can check with WhyNotWin11

    https://github.com/rcmaehl/WhyNotWin11/releases

    Windows 10 https://www.microsoft.com/fr-fr/software-download/windows10/

    Windows 11 https://www.microsoft.com/fr-fr/software-download/windows11

    Once the file is downloaded, open it with 7-Zip and extract everything into a folder anywhere except directly on C:\

    https://www.7-zip.org/download.html

    Click on the setup.exe that is in the extracted folder.

    2
    1. Hello,

      Please try the following procedure:

             Click on Start, then type cmd in the search box:

      1. In the results area, right-click on cmd.exe and then click on Run as administrator.

      2. You may need to type the password for an administrator account.

      3. Click on Continue if you are an administrator or type the administrator password, then click on Continue.

      4. At the command prompt, type Sfc /scannow and then press Enter.


      The scan may take some time.

      Please be patient as Windows repairs the damaged or missing files it detects.

      If information from the installation CD-ROM is needed to fix the issue, you may be prompted to insert your personal Windows CD-ROM that you created.

      For more information on the System File Checker (SFC) tool, please refer to the following Knowledge Base article on the Microsoft website:

      Use the System File Checker tool to repair missing or corrupted system files in Windows Vista or Windows 7


      0
      1. Thank you both for the quick responses, I carried out the manipulations and it works perfectly again, and thank you for correcting me regarding the 64-bit and 32-bit files.

        Thank you and have a great day!

        0
        1. Moderator

          You're welcome.

          I'm marking it as resolved.

          Have a good day too.

          @+

          0
        2. Hello,

          You're welcome, and good luck! Also, thank you for marking the topic as resolved for other users experiencing the same issue,

          you’ll be helping them out.

          0