You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Get-Culture** cmdlet gets information about the current culture settings.
39
+
The `Get-Culture` cmdlet gets information about the current culture settings.
25
40
This includes information about the current language settings on the system, such as the keyboard layout, and the display format of items such as numbers, currency, and dates.
26
41
27
-
You can also use the Get-UICulture cmdlet, which gets the current user interface culture on the system, and the [Set-Culture](https://go.microsoft.com/fwlink/?LinkID=242258) cmdlet in the International module.
42
+
You can also use the `Get-UICulture` cmdlet, which gets the current user interface culture on the system, and the [Set-Culture](/powershell/module/international/set-culture?view=win10-ps) cmdlet in the International module.
28
43
The user-interface (UI) culture determines which text strings are used for user interface elements, such as menus and messages.
29
44
30
45
## EXAMPLES
@@ -106,25 +121,87 @@ The first command uses the **Get-Culture** cmdlet to get the current culture set
106
121
It stores the resulting culture object in the $C variable.
107
122
108
123
The second command displays all of the properties of the culture object.
109
-
It uses a pipeline operator (|) to send the culture object in $C to the Format-List cmdlet.
110
-
It uses the *Property* parameter to display all (*) properties of the object.
124
+
It uses a pipeline operator (|) to send the culture object in `$C` to the `Format-List` cmdlet.
125
+
It uses the **Property** parameter to display all (\*) properties of the object.
111
126
This command can be abbreviated as `$c | fl *`.
112
127
113
128
The remaining commands explore the properties of the culture object by using dot notation to display the values of the object properties.
114
129
You can use this notation to display the value of any property of the object.
115
130
116
-
The third command uses dot notation to display the value of the Calendar property of the culture object.
131
+
The third command uses dot notation to display the value of the **Calendar** property of the culture object.
117
132
118
-
The fourth command uses dot notation to display the value of the DataTimeFormat property of the culture object.
133
+
The fourth command uses dot notation to display the value of the **DataTimeFormat** property of the culture object.
119
134
120
135
Many object properties have properties.
121
-
The fifth command uses dot notation to display the value of the FirstDayOfWeek property of the DateTimeFormat property.
136
+
The fifth command uses dot notation to display the value of the **FirstDayOfWeek** property of the **DateTimeFormat** property.
137
+
138
+
### Example 3: Get a specific culture
139
+
140
+
Get the CultureInfo object for English in the United States.
141
+
142
+
```powershell
143
+
Get-Culture -Name en-US
144
+
```
145
+
146
+
```output
147
+
LCID Name DisplayName
148
+
---- ---- -----------
149
+
1033 en-US English (United States)
150
+
```
122
151
123
152
## PARAMETERS
124
153
154
+
### -ListAvailable
155
+
156
+
Retrieves all cultures supported by the current operating system.
157
+
158
+
```yaml
159
+
Type: SwitchParameter
160
+
Parameter Sets: ListAvailable
161
+
Aliases:
162
+
163
+
Required: False
164
+
Position: Named
165
+
Default value: None
166
+
Accept pipeline input: False
167
+
Accept wildcard characters: False
168
+
```
169
+
170
+
### -Name
171
+
172
+
Retrieve a specific culture based on the name.
173
+
174
+
```yaml
175
+
Type: String[]
176
+
Parameter Sets: Name
177
+
Aliases:
178
+
179
+
Required: False
180
+
Position: Named
181
+
Default value: None
182
+
Accept pipeline input: True (ByValue)
183
+
Accept wildcard characters: False
184
+
```
185
+
186
+
### -NoUserOverrides
187
+
188
+
Ignore user changes for current culture.
189
+
190
+
```yaml
191
+
Type: SwitchParameter
192
+
Parameter Sets: CurrentCulture, Name
193
+
Aliases:
194
+
195
+
Required: False
196
+
Position: Named
197
+
Default value: None
198
+
Accept pipeline input: False
199
+
Accept wildcard characters: False
200
+
```
201
+
125
202
### CommonParameters
126
203
127
-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
204
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
128
205
129
206
## INPUTS
130
207
@@ -136,14 +213,14 @@ You cannot pipe input to this cmdlet.
136
213
137
214
### System.Globalization.CultureInfo
138
215
139
-
**Get-Culture** returns an object that represents the current culture.
216
+
`Get-Culture` returns an object that represents the current culture.
140
217
141
218
## NOTES
142
219
143
-
You can also use the $PsCulture and $PsUICulture variables. The $PsCulture variable stores the name of the current culture and the $PsUICulture variable stores the name of the current UI culture.
220
+
You can also use the `$PsCulture` and `$PsUICulture` variables. The `$PsCulture` variable stores the name of the current culture and the `$PsUICulture` variable stores the name of the current UI culture.
0 commit comments