Created
July 15, 2020 05:35
-
-
Save brianfgonzalez/65ad08f73da90af801bbb5a66d172047 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$path = "C:\Windows\Temp\Country.xml" | |
New-item $path -ItemType File -Force -ErrorAction SilentlyContinue | |
Set-content $path '<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend"> | |
<!--UserList--> | |
<gs:UserList> | |
<gs:User UserID="Current" CopySettingsToSystemAcct="true" CopySettingsToDefaultUserAcct="true" /> | |
</gs:UserList> | |
<!--DisplayLanguage--> | |
<gs:MUILanguagePreferences> | |
<gs:MUILanguage Value="en-US" /> | |
<gs:MUIFallback Value="en-US" /> | |
</gs:MUILanguagePreferences> | |
<!--SystemLocale--> | |
<gs:SystemLocale Name="th-TH"/> | |
<!--UserLocale--> | |
<gs:UserLocale> | |
<gs:Locale Name="en-GB" SetAsCurrent="true" ResetAllSettings="false"/> | |
</gs:UserLocale> | |
<!--InputPreferences--> | |
<gs:InputPreferences> | |
<!--th-TH--> | |
<!--<gs:InputLanguageID Action="add" ID="041e:0000041e"/>--> | |
<gs:InputLanguageID Action="add" ID="0409:00000409"/> | |
</gs:InputPreferences> | |
<!--location--> | |
<gs:LocationPreferences> | |
<gs:GeoID Value="227"/> | |
</gs:LocationPreferences> | |
</gs:GlobalizationServices>' | |
Start-Process -FilePath 'control.exe' -ArgumentList ('intl.cpl,,/f:"C:\Windows\Temp\Country.xml') | |
start-sleep 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment