Wednesday, January 24, 2018

Update PowerShell's Help Files


PowerShell comes with built-in help files to explain how its commands work. But tweaks and updates occur all the time.


The way to keep your help files up-to-date is through a cmdlet called Update-Help:








We'll see the progress indicator as the files install.

Some things to remember:
  • Running this command requires PowerShell be launched as an Administrator.
  • By default, Update-Help updates the help files for all the modules (packages of commands) that are loaded, and for most other modules as well, as long as they are updateable. 
  • If we wanted to update the help files for a specific module, we can do so with the -Module parameter:
Update-Help -Module <module name>
 





  • By default, Update-Help will only run once per day per computer. To override the once-per-day limit, use the Force parameter.






    No comments:

    Post a Comment