Use the Get-Help cmdlet to display comment-based help in the same format

后端 未结 3 1868
Happy的楠姐
Happy的楠姐 2021-02-18 17:50

I am trying to use the Get-Help cmdlet to display comment-based help in the same format in which it displays the cmdlet help topics that are generated from XML files. The abilit

3条回答
  •  灰色年华
    2021-02-18 18:25

    It will work, but you are trying to run get help on the script. You have added the help to the function. If you dot source your script, and then type get-help isalive, you will see your help for the function.

    . .\checksystem.ps1 ; get-help isalive -full
    

提交回复
热议问题