Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get-Help about_Automatic_Variables not working

Tags:

powershell

I'm studying PowerShell and both on sites and books it is suggested to call Get-Help about_Automatic_Variables to, for example, get the list of automatic variables returned. I tried calling Get-Help with the following arguments but I always get a list of cmdlets returned:

  • about_Variables
  • about_Automatic_Variables
  • about_Environment_Variables
  • about_Preference_Variables
  • about_Scopes

What is it that I'm mistaking?

like image 459
whatever Avatar asked Nov 17 '16 11:11

whatever


2 Answers

You probably have to update your help using:

Update-Help

Then you should be able to retrieve it using:

get-help about_Automatic_Variables
like image 101
Martin Brandl Avatar answered Oct 28 '22 05:10

Martin Brandl


So the solution from powershell.org is:

Install-Script -Name Install-AboutHelp

in a Administrator powershell to get the missing helpfile.

like image 21
whatever Avatar answered Oct 28 '22 05:10

whatever