Get-WinHomeLocation

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 (https://go.microsoft.com/fwlink/?LinkID=242308).

Parameters

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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: Get the GeoID setting

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

PS C:\> Get-WinHomeLocation

Set-WinHomeLocation

RegionInfo.GeoId Property