File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff 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}
277288else {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function New-ScriptEventLog {
5050
5151function 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 {
126126function 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 }
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments