Get-help about_comment_based_help example not working as expected


i  copied first example get-help about_comment_based_help file , saved .ps1 file.   when try use get-help return collection of comments in example following:

ps c:\dbascripts> get-help add-extension

add-extension [[-name] <string>] [[-extention] <string>]

ps c:\dbascripts> get-help add-extension -full

add-extension [[-name] <string>] [[-extention] <string>]

none of keyword items included.  have configured incorrectly?  running wrong directory (c:\dbasscripts saved .ps1 file.)?

thanks  elyons

 

the comment-based must @ beginning of file, before function begins.
[string](0..9|%{[char][int](32+("39826578840055658268").substring(($_*2),2))})-replace "\s{1}\b"


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client