Published: March 30, 2012
Updated: September 15, 2012
Applies To: Windows 8, Windows Server 2012
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.
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
The output type is the type of the objects that the cmdlet emits.
A 32-bit signed number that uniquely identifies a geographical location.
This command returns the GeoID setting and its display name for the current user account.
PS C:\> Get-WinHomeLocation
244 United States