Get-Host

 

Additional Resources for Get-Host

 

Listing PowerShell Version Information

http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/get-host.mspx

 

 

SYNOPSIS

Gets a reference to the current console host object. Displays Windows Powershell version and regional information by default.

 

SYNTAX

Get-Host [<CommonParameters>]

 

DETAILED DESCRIPTION

Gets a reference to the current console host object. Displays Windows Powershell version and regional information by default. This cmdlet can be used to access objects that enable you to manipulate the console user interface.

 

PARAMETERS

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".

 

INPUT TYPE

None

 

RETURN TYPE

Object

 

NOTES

 

For more information, type "Get-Help Get-Host -detailed". For technical information, type "Get-Help Get-Host -full".

 

When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

 

The automatic variable $host contains a reference to the current console host object.

 

EXAMPLE 1

 

get-host

 

This command displays information about the current shell.

 

EXAMPLE 2

 

$h = get-host

$win = $h.ui.rawui.windowsize

$win.height = 10

$win.width  = 10

$h.ui.rawui.set_windowsize($win)

 

This command resizes the Windows PowerShell window to 10 pixels by 10 pixels.

 

RELATED LINKS

Read-Host

Out-Host

Write-Host

 

 

 

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.