cmd is not opening and powershell shows error message

Anonymous
2023-02-09T20:57:38+00:00

cmd is not opening. even after reinstalling windows 10 its not working and when i open powershell its showing some error message but i can run some commands like sfc /scannow but it shows everything is ok after running that code

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2023-02-09T21:44:39+00:00

    Thanks for reaching out. My name is, Zadee. I'm an Independent Advisor and a Microsoft user like you. I'll be glad to help you today.

    Can you try this?

    -Launch PowerShell as administrator

    -In powershell type:

    Set-ExecutionPolicy -ExecutionPolicy Unrestricted <Etner>

    If that does not fix it, run a DISM as well.

    1. Press Win + Q
    2. Type: command prompt > Right-click and Run as admin
    3. Copy, paste, and enter these commands:

    DISM.exe /Online /Cleanup-image /Scanhealth <Press Enter>

    DISM.exe /Online /Cleanup-image /Restorehealth <Press Enter>

    DISM.exe /Online /Cleanup-image /Startcomponentcleanup <Press Enter>

    0 comments No comments
  2. Anonymous
    2023-02-10T01:00:28+00:00

    Hello

    thanks for the feedback

    neither of the commands are working, cmd is not at all opening even if i run it as an adminstrator.

    i have reinstalled windows but this has also not helped.

    0 comments No comments
  3. Anonymous
    2023-02-10T01:14:38+00:00

    I meant to say run it using powershell, Mahanthi. My bad. Anyhow, you have run a Windows reset, if that did not even fix it then that's something else. Let's have other experts join in and see if they have other suggestions that can help solve this issue. If I have other inputs I will certainly post again here. Please check this thread from time to time for updates. Thank you for your cooperation.

    0 comments No comments
  4. Anonymous
    2023-02-10T01:23:06+00:00

    Hi ,

    Sabya here, Independent Windows Adviser. Hope you are doing well.

    The error in powershell comes only when you run a script made yourself as it is not digitally signed.

    In your case it looks like the profile was not loaded.

    Did you make a fresh bootable usb when you installed Windows 10?

    If not can you please do that. Command prompt is a part of Windows and if it is not loading there is a chance there was corrupted files in Windows 10 ISO.

    To perform a clean install please check the following link - https://answers.microsoft.com/en-us/windows/for...

    ________________________________________________________

    Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before downloading and installing it.

    0 comments No comments