PowerShell Tip to Extract PowerShell Tool Kit Detailed Help File to a .txt file

Here's a PowerShell Tip to Extract PowerShell Tool Kit Detailed Help File to a .txt file.

 

A NetApp Storage Engineer might face a situation when he/she wants a speedy help on a cmdlet or maybe check for a cmdlet which would perform a storage related activity and there is no Powershell or maybe even the PowerShell ToolKit with that Engineer.

 

The snippet below would help you out in those situations.

 

By this you would get a handy .txt file which would consist of detailed help on all cmdlets present in PS Tool Kit which you could refer to on the go .

 

The Below snippet would give a detailed help txt file for 7-Mode PS ToolKit cmdlets.

 

gcm -Module dataontap | ?{$_.name -match "na" } | ForEach-Object { Get-Help $_.name -Detailed } >>  "C:\Vinith\powerShell\Netapp_7modeCmdlets_PowerShellToolkit_help.txt"

 

 

The Below snippet would give a detailed help txt file for ClusterMode PS ToolKit cmdlets.

 

gcm -Module dataontap | ?{$_.name -match "nc" } | ForEach-Object { Get-Help $_.name -Detailed } >>  "C:\Vinith\powerShell\Netapp_ClusterCmdlets_PowerShellToolkit_help.txt"

 

 

Happy PowerShelling!!