Determine current version of PowerShell help

Tagged: ,

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of Tim Pringle Tim Pringle 1 year, 4 months ago.

  • Author
  • #26890
    Profile photo of Dmitriy Kagarlickij
    Dmitriy Kagarlickij

    Hello guys!
    I want to rum update-help only when new version available.
    So how can I determine current version of PowerShell Help?

  • #26892
    Profile photo of Wilfredo Perez
    Wilfredo Perez

    Why not just add update-help to your powershell profile so that why it runs everytime you startup powershell under your profile and get the latest updates

  • #26893
    Profile photo of Dmitriy Kagarlickij
    Dmitriy Kagarlickij

    This is good idea, but I manage servers from different computers and also I have few guys that perform PowerShell too.
    So for me seems better to keep all servers updated in my case.

  • #26901
    Profile photo of Tim Pringle
    Tim Pringle

    Hi Dmitriy,

    Help content comes from multiple locations, and is dependent on the modules you currently have installed on your system, it's not from a single source. PowerShell handles the inventorying of version information and help uri for each module and applies logic to determine if the help for each specific module requires to be updated.

    You can use Save-Help to store current help files offline, which you can store centrally. Then you just need to use Update-Help with the -SourcePath for any systems that you want to update the help on.

    Keep in mind that the help content downloaded from the internet is linked to what modules you have on your system, so try and always use a server that has the most complete set of modules on your system.

    Help can also be linked to the revision of PowerShell installed, so if you're using a mix of Powershell 3 and 4 systems, you'll want to ensure you have all the help files you require.

You must be logged in to reply to this topic.