Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use Comment-Based Help in Shared Scripts

$
0
0

Summary: Learn how to leverage Windows PowerShell comment-based Help.

Hey, Scripting Guy! Question How can I make my scripts easier to use when I share them with friends or colleagues?

Hey, Scripting Guy! Answer People do not need to open and analyze your script if you use the comment-based Help capabilities
          of Windows PowerShell
. You can provide a description, explain the use of parameters, and provide
          a number of examples of script execution.

          Use the Get-Help cmdlet to access comment-based Help, use the name of your script, and choose
          from a number of optional switches:

Get-Help .\YourScriptName.PS1 [–Detailed –Full –Examples –Parameter <String>]


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>