Get-Help about_Automatic_Variables不起作用

nop*_*ace 5 powershell

我正在研究PowerShell以及建议调用的网站和书籍Get-Help about_Automatic_Variables,例如,获取返回的自动变量列表.我尝试Get-Help使用以下参数调用,但我总是得到一个返回的cmdlet列表:

  • about_Variables
  • 参阅about_Automatic_Variables
  • about_Environment_Variables
  • 参阅about_Preference_Variables
  • 参阅about_Scopes

我错了什么?

Mar*_*ndl 5

您可能需要使用以下方式更新您的帮助:

Update-Help
Run Code Online (Sandbox Code Playgroud)

然后你应该能够使用以下方法检索它:

get-help about_Automatic_Variables
Run Code Online (Sandbox Code Playgroud)


nop*_*ace 2

所以powershell.org 的解决方案 是:

Install-Script -Name Install-AboutHelp
Run Code Online (Sandbox Code Playgroud)

在管理员 powershell 中获取丢失的帮助文件。