PowerTip: Check Status of PowerShell Help Files on Remote Computers

Doctor Scripto

Summary: Use Windows PowerShell to check the status of Help file updates on remote computers.

Hey, Scripting Guy! Question How can I easily see if the Windows PowerShell Help files are up-to-date on my remote computers?

Hey, Scripting Guy! Answer Use the Invoke-Command cmdlet, target the remote computers, use Get-Help to look for help,
           and then use the Select-String cmdlet to search for “Cannot find the Help files” in the output.
           Here is an example (this is a single-line command broken at the pipeline character for readability):

Invoke-Command -CN "s1","s2","dc1" -ScriptBlock { get-help help |
Select-String "cannot find the Help files" -Quiet}

0 comments

Discussion is closed.

Feedback usabilla icon