Skip to content

Commit f92e638

Browse files
committed
Add WindowsOverride value
1 parent 3680142 commit f92e638

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/Install-Defaults.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,17 @@ if ($PSBoundParameters.ContainsKey('Language')) {
272272
}
273273
else {
274274
Set-SystemLocale -Language $Language
275+
276+
# Set the WindowsOverride registry key to get the desired display language
277+
$WindowsOverride = @"
278+
{
279+
"path": "HKCU:\\Control Panel\\International\\User Profile",
280+
"name": "WindowsOverride",
281+
"value": $Language,
282+
"type": "String"
283+
}
284+
"@
285+
Set-DefaultUserProfile -Setting $WindowsOverride @prefs
275286
}
276287
}
277288
else {

src/Install-Defaults.psm1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function New-ScriptEventLog {
5050

5151
function Write-ToEventLog {
5252
# Write an entry to the custom event log
53-
[CmdletBinding(SupportsShouldProcess = $true)]
53+
[CmdletBinding(SupportsShouldProcess = $false)]
5454
param (
5555
[Parameter()]$Property,
5656

@@ -126,6 +126,9 @@ function Get-Platform {
126126
function Get-OSName {
127127
# Return the OS name string
128128
switch -Regex ((Get-CimInstance -ClassName "CIM_OperatingSystem").Caption) {
129+
"^Microsoft Windows Server 2025.*$" {
130+
$Caption = "Windows2025"; break
131+
}
129132
"^Microsoft Windows Server 2022.*$" {
130133
$Caption = "Windows2022"; break
131134
}

src/configs/User-Windows11.All.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"name": "ShowTaskViewButton",
3333
"value": 0,
3434
"type": "DWord",
35-
"note": "Removes the Windows 11 Task View button on the Taskbar"
35+
"note": "Removes the Task View button on the Taskbar"
3636
}
3737
]
3838
}

0 commit comments

Comments
 (0)