diff --git a/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/SetDefaultLang.ps1 b/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/SetDefaultLang.ps1 index f3058bd87..2319b49dd 100644 --- a/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/SetDefaultLang.ps1 +++ b/CustomImageTemplateScripts/CustomImageTemplateScripts_2024-03-27/SetDefaultLang.ps1 @@ -76,7 +76,7 @@ function UpdateRegionSettings($GeoID) } #Set Region in Default User Profile (applies to all new users) - New-ItemProperty -Path "HKU\.DEFAULT\Control Panel\International\Geo" -Name "Nation" -Value $GeoID -PropertyType String -Force + New-ItemProperty -Path "Registry::HKEY_USERS\.DEFAULT\Control Panel\International\Geo" -Name "Nation" -Value $GeoID -PropertyType String -Force Set-WinHomeLocation -GeoId $GeoID Write-Host "***Starting AVD AIB CUSTOMIZER PHASE: Set default Language - Region update completed." } @@ -220,4 +220,4 @@ Write-Host "*** AVD AIB CUSTOMIZER PHASE: Set default Language - Time taken: $el ############# # END # -############# \ No newline at end of file +#############