To update the Help files for the locally installed PowerShell modules, follow these steps:
- Type exit to exit PowerShell. This is so that you can relaunch PowerShell with elevated privileges. This is required for some of the modules, based on the permissions used to install them.
- Enter sudo pwsh (or sudo pwsh-preview) to launch PowerShell as a superuser.
- At the PS> prompt, run Update-Help.
- Wait for the update progress bar to appear. The bar will fill as the Help files download onto your computer:
- Use exit to exit PowerShell as a superuser, and launch PowerShell as a regular user.
We can now proceed and fetch Help information ...