How to update PowerShell engine?

Anonymous
2023-08-23T01:36:04.8233333+00:00

Hello!

I'm trying to update the PowerShell engine using the update-help command and nothing happens as it's still on version 2.0. I want to upgrade to 3.0. My PC has Windows 10 Pro 64-bit.

pshell-2

pshell-1

Windows for business Windows Server User experience PowerShell
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. abbodi86 4,036 Reputation points
    2023-08-23T22:21:09.2966667+00:00

    "MicrosoftWindowsPowerShellV2Root" and "MicrosoftWindowsPowerShellV2" feature names are left for compatibility between Windows versions upgrades

    Powershell version itself is updated per OS

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-08-23T02:16:51.52+00:00

    The "Update-Help" won't do anything more than update the help files for the installed version of Powershell and modules.

    It's common for Update-Help to encounter errors. The XML file may contain a bad link. There may not be a help file for the UI culture.

    If you want to update the help for as many modules as possible, run it like this:

    Update-Help -Force -ErrorAction SilentlyContinue -ErrorVariable ErrorMsgs

    You won't see any errors while it's running, but you can use $ErrorMsgs.Exception to see the modules that had failed updates.

    PowerShell itself should already be installed on Windows 10. The check, run PowerShell and execute $PSVersionTable. You should see something like this:

    Name                           Value
    ----                           -----
    PSVersion                      5.1.22621.1778
    PSEdition                      Desktop
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
    BuildVersion                   10.0.22621.1778
    CLRVersion                     4.0.30319.42000
    WSManStackVersion              3.0
    PSRemotingProtocolVersion      2.3
    SerializationVersion           1.1.0.1
    
    1 person found this answer helpful.
    0 comments No comments

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.