我正在研究PowerShell,并且在网站和书籍上都建议调用matches()
,例如,获取返回的自动变量列表。我尝试使用以下参数调用Get-Help about_Automatic_Variables
,但我总是得到一个返回的cmdlet列表:
我错了什么?
答案 0 :(得分:5)
您可能需要使用
更新帮助Update-Help
然后你应该能够使用以下方法检索它:
get-help about_Automatic_Variables
答案 1 :(得分:1)
阅读本文:
https://technet.microsoft.com/en-us/library/hh847768.aspx
我从浏览器中得到了这个。当我搜索“关于自动变量”时,这是第一次打击。更新PS副本中的帮助不会有任何损害,如另一个答案所示。对于当前变量列表,只需执行以下操作:
PS> gci variable:
答案 2 :(得分:1)
所以the solution from powershell.org是:
Install-Script -Name Install-AboutHelp
在管理员PowerShell中获取缺少的帮助文件。
答案 3 :(得分:0)
您可能拥有英语以外的语言和Powershell V5吗? 如果是的话 - 不是这里的答案 Missing Help Files in Powershell V5.0