Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasayukiOzawa/623c5e86661709961a55 to your computer and use it in GitHub Desktop.
Save MasayukiOzawa/623c5e86661709961a55 to your computer and use it in GitHub Desktop.
tzutil.exe /s "Tokyo Standard Time"
$NewList = New-WinUserLanguageList -Language "ja-JP"
$NewList.Add("en-US")
Set-WinUserLanguageList $NewList -Force
Set-WinUILanguageOverride ja-JP
Set-WinHomeLocation 0x7A
Set-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters\ -Name "LayerDriver JPN" -Value "kbd106.dll" -Type String
Set-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters\ -Name "OverrideKeyboardIdentifier" -Value "PCAT_106KEY" -Type String
Set-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters\ -Name "OverrideKeyboardSubtype" -Value 2 -Type DWord
Set-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters\ -Name "OverrideKeyboardtype" -Value 7 -Type DWord
Restart-Computer -Force
<#
システムロケールを日本語に変更する場合
Set-WinSystemLocale 1041
#>
<#
以下、メモ
Configure International Settings in Windows
https://technet.microsoft.com/en-us/library/hh825705.aspx
International Settings Cmdlets in Windows PowerShell
https://technet.microsoft.com/en-us/library/hh825705.aspx
ロケール ID (LCID) の一覧
https://msdn.microsoft.com/ja-jp/library/Cc392381.aspx
Set-WinDefaultInputMethodOverride "0411:00000411"
Server Core を GUI に変更
Add-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Source Wim:D:\sources\install.wim:4 -Restart
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment