PowerShell Repository Not Working on Windows 11

TechUST 581 Reputation points
2025-03-23T18:16:07.3833333+00:00

The PowerShell repository is not working with Windows 11. I tried running some commands, like whomi, but it's not working. Please provide a fix so that I can deploy it on a large scale.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,906 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 44,090 Reputation points MVP
    2025-03-23T19:53:23.5033333+00:00

    Follow https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Zunhui Han 4,290 Reputation points Microsoft External Staff
    2025-03-24T02:13:13.9633333+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Windows PowerShell may not open on Windows 11 if the installation files are corrupted. Uninstall and reinstall to restore normal operation, refer to the following steps:

    Step 1: Press the Windows key, search for optional features, and click to open it.

    Step 2: Expand Windows PowerShell ISE under "Added Features" and click Remove to uninstall it.

    Step 3: Restart your computer, download the Windows PowerShell MSI package from Microsoft, and reinstall it.User's image

    https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5

    I hope the information above is helpful.

    Best regards

    Zunhui

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.