Set-WinHomeLocation

Set-WinHomeLocation

Sets the home location setting for the current user account.

Syntax

Parameter Set: Default
Set-WinHomeLocation [-GeoID] <Int32> [ <CommonParameters>]

Detailed Description

The Set-WinHomeLocation cmdlet sets the value of the user 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

-GeoID<Int32>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<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).

Examples

Example 1: Set the home location for the current user

This command sets the home location for the current user account to 0xF4 (hex) (United States).

PS C:\> Set-WinHomeLocation -GeoID 0xF4

Get-WinHomeLocation

RegionInfo.GeoId Property