【发布时间】:2012-04-20 04:15:26
【问题描述】:
我创建了一个小脚本来测试创建我自己的基于帮助的 powershell,但我收到了错误:
获取帮助:找不到主题“.\testHelp.ps1”的帮助。在线:49 字符:15 + 获取帮助
测试脚本如下:
<#
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
【问题讨论】: