Created
September 12, 2016 09:42
-
-
Save istairbn/a8d912972885515ca70a41d2279926d1 to your computer and use it in GitHub Desktop.
Sets Azure Users to use en-GB as their culture rather than en-US by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding(SupportsShouldProcess=$True)] | |
Param( | |
[string] | |
$NTUserDatPath = "D:\Users\Default User\NTUSER.DAT" | |
) | |
If(!(Test-Path $NTUserDatPath)){ | |
" Write-Error $NTUserDatPath incorrect" | |
} | |
REG load HKLM\TempHive $NTUserDatPath | |
$Default = "HKLM:\TempHive\Control Panel\International" | |
Set-ItemProperty -Path $Default -Name "iCountry" -Value "44" -Force | |
Set-ItemProperty -Path $Default -Name "Locale" -Value "00000809" -Force | |
Set-ItemProperty -Path $Default -Name "LocaleName" -Value "en-GB" -Force | |
Set-ItemProperty -Path $Default -Name "sCountry" -Value "United Kingdom" -Force | |
Set-ItemProperty -Path $Default -Name "sCurrency" -Value "£" -Force | |
Set-ItemProperty -Path $Default -Name "sLanguage" -Value "ENG" -Force | |
Set-ItemProperty -Path $Default -Name "sLongDate" -Value "dd MMMM yyyy" -Force | |
Set-ItemProperty -Path $Default -Name "sShortDate" -Value "dd/MM/yyyy" -Force | |
Set-ItemProperty -Path $Default -Name "sTimeFormat" -Value "HH:mm:ss" -Force | |
Set-ItemProperty -Path $Default -Name "sShortTime" -Value "HH:mm" -Force | |
Set-ItemProperty -Path $Default -Name "iDate" -Value "1" -Force | |
Set-ItemProperty -Path $Default -Name "iFirstDayOfWeek" -Value "0" -Force | |
Set-ItemProperty -Path $Default -Name "iFirstWeekOfYear" -Value "2" -Force | |
Set-ItemProperty -Path $Default -Name "iMeasure" -Value "0" -Force | |
Set-ItemProperty -Path $Default -Name "iNegCurr" -Value "1" -Force | |
Set-ItemProperty -Path $Default -Name "iPaperSize" -Value "9" -Force | |
Set-ItemProperty -Path $Default -Name "iTime" -Value "1" -Force | |
Set-ItemProperty -Path $Default -Name "iTLZero" -Value "1" -Force | |
REG unload HKLM\TempHive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment