我创建了一个小的脚本来测试创建我自己的帮助基于PowerShell和我收到的错误:的PowerShell:基于注释的帮助
Get-Help : Cannot find Help for topic ".\testHelp.ps1". At line:49 char:15 + Get-Help <<<< @PSBoundParameters | more + CategoryInfo : ResourceUnavailable: (:) [Get-Help], HelpNotFoundException + FullyQualifiedErrorId : HelpNotFound,Microsoft.PowerShell.Commands.GetHelpCommand
继承人的测试脚本:
<#
SYNOPSIS
retrieive a list of services from local and remote machines
.DESCRIPTION
Retrieive services from local and remote machines and reports the following fields
.PARAMETER Servers
The Get-Service cmdlet gets objects that represent the services on a local computer or on a remote computer.
.EXAMPLE
PS C:\> Get-Something 'One value' 32
#>
param($computername="localhost")
Get-WmiObject -Class Win32_BIOS -ComputerName $computername
我把一个。在前面,仍然是相同的问题 – resolver101 2012-04-06 20:23:12
获取帮助被代理?尝试运行到'Get-Command Get-Help | Format-List *'来查看'Get-Help'来自哪个模块。 – 2012-04-06 21:03:09
PowerShell脚本也通过安全管理员不喜欢的UNC路径运行。本地复制并解决问题。 – resolver101 2012-04-07 17:50:24