Get-Help Produces Duplicate Topics

You need to look up the details of an arcane PowerShell cmdlet, so you run Get-Help Set-CrazyOption and get this response:

 [PS] C:\Windows\system32>get-help Set-CrazyOption
Name Category Synopsis 
---- -------- --------
Set-CrazyOption Cmdlet Use the Set-CrazyOption cmdlet to set some really crazy options ...
Set-CrazyOption Cmdlet Use the Set-CrazyOption cmdlet to set some really crazy options ...

You probably have duplicate PS Snapins loaded. If you open the Exchange Management Shell and run Get-PSSnapin, it doesn’t show that Microsoft.Exchange.Management.Powershell.E2010 is loaded. I don’t know why, but it doesn’t. If you run Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010 while in the EMS (in a ps1 script, perhaps?), it will load the Exchange cmdlets twice. Now when you run Get-Help it will return duplicate topic listings without showing any topic details. Not very helpful.

You can run Get-PSSnapin to see what snapins are loaded. If you are in the EMS and see Microsoft.Exchange.Management.Powershell.E2010 listed, then this is your problem. To fix it, just run Remove-Microsoft.Exchange.Management.Powershell.E2010.

Leave a Reply

Your email address will not be published.