Get-WinHomeLocation

Applies To: Windows 8, Windows Server 2012

Get-WinHomeLocation

Gets the Windows GeoID home location setting for the current user account.

Syntax

Get-WinHomeLocation [ <CommonParameters>]

Detailed Description

The Get-WinHomeLocation cmdlet gets the value of the user GeoID setting and returns a .NET GeoID object. The Windows GeoID setting is a user setting that describes the home location (that is, the country or region) of the current user account. Applications that require the current user account’s home location, such as a driver for a television tuner application, can use this setting.

A table of GeoIDs is available at Table of Geographical Locations.

Parameters

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • GeoID

    A 32-bit signed number that uniquely identifies a geographical location.

Examples

Example 1

This command returns the GeoID setting and its display name for the current user account.

PS C:\> Get-WinHomeLocation
HomeLocation     Description                                                                        
----             -----------                                                           
244             United States 

Set-WinHomeLocation

RegionInfo.GeoId Property