Share via

Windows Powershell won't open

Anonymous
2022-09-02T00:50:22+00:00

My Microsoft store was uninstalled somehow off of my computer and looking up how to reinstall led me to use PowerShell but the problem is that PowerShell refuses to open with or without administrator. As soon as I attempt to open the program the window flashes and immediately disappears. I am unable to reinstall the Microsoft Store from my knowledge without PowerShell as there is no direct download that I could find online. If any additional information is needed, I am willing to provide please let me know.

Windows for home | Windows 10 | Microsoft Store

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
Answer accepted by question author
  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2022-09-02T03:15:27+00:00

    Hi,

    If the PowerShell window is closing automatically, it usually means there is some malware onboard. Please download Malwarebytes (Free) and run a thorough scan and eliminate malware.

    Once done, start PowerShell and run the following PS command to reinstall Store:

    Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    

    Alternatively, you can download the Store installer from this thread.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2022-09-03T02:20:20+00:00

    You're welcome pploli. Please close this question by marking helpful responses in this thread as an answer.

    0 comments No comments
  2. Anonymous
    2022-09-02T21:24:12+00:00

    Hi, pploli

    Good day,

    The powershell installation package could be founded here. https://docs.microsoft.com/en-us/powershell/scripting/gallery/getting-started?view=powershell-7.2

    0 comments No comments
  3. Anonymous
    2022-09-02T20:18:16+00:00

    Thank you so much I was looking for a direct download on the internet but never found one. PowerShell still doesn't work but as long as I have the Microsoft store I shouldn't need it anyways. I also ran Malwarebytes but no detections were found so I'm not sure but frankly also don't care too much. Thank you again for your help this was exactly what I needed.

    0 comments No comments
  4. John DeV 161.8K Reputation points Independent Advisor
    2022-09-02T01:21:05+00:00

    Hello ppIoIi,

    Good day! I'm John and I'll be happy to assist you today. I know this has been difficult for you, Rest assured, I'm going to do my best to help you. What is your current Windows version and edition? Press Start then click Settings(Gear icon), select System then About.

    Please try this if it helps.

    Please make sure to uninstall the Microsoft Store and Xbox app first.

    **Uninstall the Microsoft Store app:

    Press Windows key + X

    Click and Run Windows PowerShell as Administrator. Copy and paste the command below then press Enter.

    get-appxpackage *WindowsStore* | remove-appxpackage

    **Uninstall the Xbox app

    Open Settings then select Apps

    Under Apps and Features, find Xbox app

    Click it then Uninstall

    Once the two apps are uninstalled, install the Xbox app from the link below

    https://aka.ms/XboxInstaller

    Restart your computer then open the Xbox app

    This will prompt to install the Microsoft Store app

    Please check if the issue still persists.

    Kindly let me know if this helps or if you have any further concerns.

    Kind regards,

    John DeV

    Independent Advisor

    0 comments No comments