PowerShell Workflow learning + scripting Workflow Help

Source: Internet
Author: User

Key points:

A) Comment-based help (identifying the Help file for the workflow) is not supported in the workflow. Externalhelp note).

b) How to support the Get-help parameter: use. Externalhelp comments So get-help find Help topics, Help topic suggested name formats <script-module-base-name>.psm1-help.xml

c) Support Online Help: Provide an address for online help using the Helpuri attribute of the Cmdletbinding property

Example B:

1 . Include the script workflow in the Script module (. psm1) 2 . Use the XML-based cmdlet Help topic format to write a Help topic for a script workflow 3. Add. The EXTERNALHELP comment that specifies the name of the XML-based cmdlet Help topic for the workflow (. EXTERNALHELP Note For more information, see HTTP://GO.MICROSOFT.COM/FWLINK/?LINKID=144309)

<script-module-base-name>.psm1-help.xml Workflow new-package{... } Workflow set-package{... }


Example C:

#. Externalhelp <script-module-base-name>.psm1-help.xmlworkflow new-package{    [CmdletBinding (HelpURI= "http ://www.baidu.com ")]    Param ([Parameter] $ServerName) ...     }



PowerShell Workflow learning + scripting Workflow Help

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.