When running Get-Help against the about_ HelpFile for the following three modules it returns duplicates and doesn’t run the help:
CimCmdlets
PSScheduledJob
PSWorkflow
Here is an example with about_CimSession:
PS G:\Powershell> Get-Help about_CimSession Name Category Module Synopsis ---- -------- ------ -------- about_CimSession HelpFile Describes a CimSession object and the difference between... about_CimSession HelpFile Describes a CimSession object and the difference between...
I set up the following variables to see which help files are being duplicated:
$sys32Help = Get-ChildItem -Path "C:\Windows\System32\WindowsPowerShell\v1.0\en-US\" -Filter {*help*} $sys32ModHelp = Get-ChildItem -Path "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" -Filter {*help*} -Recurse -File $compare = Compare-Object -ReferenceObject $sys32Help -DifferenceObject $sys32ModHelp -Property name -IncludeEqual $compEQ = $compare | where sideIndicator -eq ==
The output of $compEQ on my computer:
PS G:\Powershell> $compEQ name SideIndicator ---- ------------- about_CimSession.help.txt == about_Scheduled_Jobs.help.txt == about_Scheduled_Jobs_Advanced.help.txt == about_Scheduled_Jobs_Basics.help.txt == about_Scheduled_Jobs_Troubleshooting.help.txt == about_ActivityCommonParameters.help.txt == about_Checkpoint-Workflow.help.txt == about_ForEach-Parallel.help.txt == about_InlineScript.help.txt == about_Parallel.help.txt == about_Sequence.help.txt == about_Suspend-Workflow.help.txt == about_WorkflowCommonParameters.help.txt == about_Workflows.help.txt ==
To test I did change the about_CimSession.help.txt files to about_CimSession.help.txt.old in the modules directory from above.
I was able to successfully run ‘Get-Help about_CimSession’ after that.
Which help files can I safely delete, if any?
Is there a reason why just these modules’ help files would be duplicated?