Powershell update-help command downloads latest help information related all Powershell command on your local computer, it essential to run the Powershell update-help command once every 6 months to get new help updates from Microsoft.
One can also download the update-help directly from microsoft official site and save in a shared location and replicate it across all your windows compputer and also you can download a specific module help as well.
All Powershell modules are stored in a variable $env:PSModulePath it’s an environmental variable, here are the simples steps how can download the help-updates from Microsoft.
Update-help -force
The above command downloads the latest help updates from microsoft, see the below screenshot how the help modubles are being downloaded from microsoft, make sure you have the internet connection is active ro working.
When you already downloaded the help files and stored in a shared location then you want to install it on any windows computer here is the command looks like.
Update-Help –SourcePath '\\server\sharelocaton\helpfiles\'
The above command installs the help updates on the computer from the shared location mentioned.
Install Powershell update-help on multiple remote computers.
We need to create a file for storing all the servers or multiple machines list, I named it as Allservers.txt for and saved it in my local machine c:\temp\Allservers.txt
$Allserers = get-content -path "C:\temp\Allservers.txt" foreach ($oneserver in $allservers) { Invoke-Command -ComputerName $oneserver -ScriptBlock {update-help -force)
}
The Above script install the help modules on the remote computers you have listed in the notepad file, make sure you have the internet connection is working on remote computers you have choosen.
Thank you for reading this article, if you have any questions please let us know.
Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.
Leave a Reply Cancel reply