Set-Culture

Set-Culture

Sets the user culture for the current user account.

Syntax

Parameter Set: Default
Set-Culture [-CultureInfo] <CultureInfo> [ <CommonParameters>]

Detailed Description

The Set-Culture cmdlet sets a specific culture (also known as a locale for unmanaged code development) for the current user account. The information includes the names for the culture, the writing system, the calendar, and formatting for dates and sort strings. For more information, see CultureInfo Class and Configurable Language and Cultural Settings.

Parameters

-CultureInfo<CultureInfo>

Specifies the culture.

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 culture for the current user

This command sets the culture for the current user account to German (Germany).

PS C:\> Set-Culture -CultureInfo de-DE

GetCulture Class