Forum Discussion

gchen290's avatar
gchen290
Copper Contributor
Jul 15, 2021

Get-Variable, variable, Get-Host, host

Get-Variable / variable and Get-Host / host (I've found these 2 pairs so far) seem to produce the same results but they are not really alias (can not be found in the alias list). Is there any difference between them?
  • gchen290 Both (Get-Host and Host) return the same TypeName (System.Management.Automation.Internal.Host.InternalHost) and both Get-Variable and Variable return the same TypeNames System.Management.Automation.xxx.Variable (QuestionMark/PS/Local/Null/PSCulture and PSUICulture). Indeed, they are not in the alias list.. So, what's going on.. Can't find anything about this, I'm curious!


Resources