展開イメージのサービスと管理ツール(DISM.EXE)を使って、Hyper-Vの初期設定言語・キーボード・タイムゾーンを日本に設定する。

以前の記事でHyper-V Server 2008 R2 with SP1を日本語化する設定方法について紹介しました。


今回は、Windows Automated Install Toolkit(Windows 自動化インストールツールキット)の展開イメージのサービスと管理ツール(Dism.exe)を使って、既定の言語・キーボードを設定する方法を紹介します。こちらの方法はインストール前に設定できるので、まだインストールしていない場合はこちらの方法が便利です。


まず、設定するタイミングですがImageXでinstall.wimをマウントした後に行います。
(Dismはマウントしたオフラインイメージに対して操作を行います。今回はHyper-Vの起動可能なUSBメモリに対しての説明のためImageXでマウントした後に行います。)



C:\>"C:\Program Files\Windows AIK\Tools\x86\imagex.exe" /apply "E:\sources\install.wim" 1 H:\

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Version: 6.1.7600.16385


[ 100% ] Applying progress

Successfully applied image.

Total elapsed time: 16 min 48 sec

マウントが終了するとエクスプローラから、install.wimが以下のようにマウントされます。

Dism.Exeは、このマウントしたボリュームに対して操作を行います。

日本語設定 (Set-AllIntl:ja-JP)


C:\>dism /image:h: /Set-AllIntl:ja-JP

展開イメージのサービスと管理ツール
バージョン: 6.1.7600.16385

イメージのバージョン: 6.1.7601.17514


入力ロケールが次に設定されました: ja-JP
システム ロケールが次に設定されました: ja-JP
ユーザー ロケールが次に設定されました: ja-JP
UI 言語が次に設定されました: ja-JP
操作は正常に完了しました。

106日本語キーボード設定 (/Set-LayeredDriver:6)


C:\>dism /image:h: /Set-LayeredDriver:6

展開イメージのサービスと管理ツール
バージョン: 6.1.7600.16385

イメージのバージョン: 6.1.7601.17514

操作は正常に完了しました。

/Set-LayeredDriverで指定する値は以下から選びます。キーボードレイアウトが異なる国って日本と韓国だけみたいですね。


1.PC/AT 拡張キーボード (101/102 キー)
2.韓国語 PC/AT 101 キー互換キーボード/MS Natural Keyboard (Type 1)
3.韓国語 PC/AT 101 キー互換キーボード/MS Natural Keyboard (Type 2)
4.韓国語 PC/AT 101 キー互換キーボード/MS Natural Keyboard (Type 3)
5.韓国語キーボード (103/106 キー)
6.日本語キーボード (106/109 キー)

タイムゾーン設定 (/Set-TimeZone:"Tokyo Standard Time")


dism /image:h: /Set-TimeZone:"Tokyo Standard Time"

展開イメージのサービスと管理ツール
バージョン: 6.1.7600.16385

イメージのバージョン: 6.1.7601.17514

操作は正常に完了しました。

設定できる値は、tzutil.exe /l で確認できる値です。Tokyo Standard Timeで問題ないと思いますが、一応設定値のリストを記事の末尾で紹介します。


最後に・・設定した内容を /Get-Intl コマンドラインオプションで確認します。


C:\>dism /image:h: /Get-Intl

展開イメージのサービスと管理ツール
バージョン: 6.1.7600.16385

イメージのバージョン: 6.1.7601.17514

オフラインの地域と言語の設定をレポートしています。

既定のシステム UI 言語 : ja-JP
システム ロケール : ja-JP
既定のタイム ゾーン : Pacific Standard Time
既定ユーザーのユーザー ロケール : ja-JP
場所 : 日本 (GEOID = 122)
アクティブなキーボード : 0411:{03B5835F-F03C-411B-9CE2-AA23E1171E36}{A76C93D9-55
23-4E90-AAFA-4DB112F9AC76}, 0411:{4518B9B5-7112-4855-B64F-2EC0DD2831E6}{54EDCC94

  • 1524-4BB1-9FB7-7BABE4F4CA64}

キーボード レイヤード ドライバー : 日本語キーボード (106/109 キー)

インストールされている言語: de-DE
種類: 完全にローカライズされた言語。
インストールされている言語: en-US
種類: 完全にローカライズされた言語。
インストールされている言語: es-ES
種類: 完全にローカライズされた言語。
インストールされている言語: fr-FR
種類: 完全にローカライズされた言語。
インストールされている言語: it-IT
種類: 完全にローカライズされた言語。
インストールされている言語: ja-JP
種類: 完全にローカライズされた言語。
インストールされている言語: ko-KR
種類: 部分的にローカライズされた言語、MUI。
フォールバック言語 en-US
インストールされている言語: pt-BR
種類: 部分的にローカライズされた言語、MUI。
フォールバック言語 en-US
インストールされている言語: ru-RU
種類: 部分的にローカライズされた言語、MUI。
フォールバック言語 en-US
インストールされている言語: zh-CN
種類: 部分的にローカライズされた言語、MUI。
フォールバック言語 en-US
インストールされている言語: zh-HK
種類: 部分的にローカライズされた言語、MUI。
フォールバック言語 zh-TW

操作は正常に完了しました。

既定の言語・キーボードが日本語になっていることが確認できます。/Get-Intlコマンドラインオプションでは、インストールイメージに入っている言語パックをリストしてくれるので、これらの言語から既定とする言語を選ぶことができます。


CodePlexで紹介しているCreate Hyper-V Server USB Memoryでは、ツールからで既定の言語を設定できるようになっています。(作成時に言語をDism.Exeで指定しています。)


参考:タイムゾーンに設定可能な値。(大文字・小文字を区別します)


C:\>tzutil /l

(UTC-12:00) 国際日付変更線 西側
Dateline Standard Time

(UTC-11:00) 協定世界時-11
UTC-11

(UTC-10:00) ハワイ
Hawaiian Standard Time

(UTC-09:00) アラスカ
Alaskan Standard Time

(UTC-08:00) バハカリフォルニア
Pacific Standard Time (Mexico)

(UTC-08:00) 太平洋標準時 (米国およびカナダ)
Pacific Standard Time

(UTC-07:00) アリゾナ
US Mountain Standard Time

(UTC-07:00) チワワ、ラパス、マサトラン
Mountain Standard Time (Mexico)

(UTC-07:00) 山地標準時 (米国およびカナダ)
Mountain Standard Time

(UTC-06:00) グアダラハラメキシコシティモンテレー
Central Standard Time (Mexico)

(UTC-06:00) サスカチュワン
Canada Central Standard Time

(UTC-06:00) 中央アメリ
Central America Standard Time

(UTC-06:00) 中部標準時 (米国およびカナダ)
Central Standard Time

(UTC-05:00) インディアナ東部
US Eastern Standard Time

(UTC-05:00) ボゴタ、リマ、キト
SA Pacific Standard Time

(UTC-05:00) 東部標準時 (米国およびカナダ)
Eastern Standard Time

(UTC-04:30) カラカス
Venezuela Standard Time

(UTC-04:00) アスンシオン
Paraguay Standard Time

(UTC-04:00) クイアバ
Central Brazilian Standard Time

(UTC-04:00) サンティアゴ
Pacific SA Standard Time

(UTC-04:00) ジョージタウン、ラパス、マナウス、サンフアン
SA Western Standard Time

(UTC-04:00) 大西洋標準時 (カナダ)
Atlantic Standard Time

(UTC-03:30) ニューファンドランド
Newfoundland Standard Time

(UTC-03:00) カイエンヌフォルタレザ
SA Eastern Standard Time

(UTC-03:00) グリーンランド
Greenland Standard Time

(UTC-03:00) サルバドル
Bahia Standard Time

(UTC-03:00) ブエノスアイレス
Argentina Standard Time

(UTC-03:00) ブラジリア
E. South America Standard Time

(UTC-03:00) モンテビデオ
Montevideo Standard Time

(UTC-02:00) 協定世界時-02
UTC-02

(UTC-02:00) 中央大西洋
Mid-Atlantic Standard Time

(UTC-01:00) アゾレス諸島
Azores Standard Time

(UTC-01:00) カーボベルデ諸島
Cape Verde Standard Time

(UTC) カサブランカ
Morocco Standard Time

(UTC) ダブリン、エジンバラリスボン、ロンドン
GMT Standard Time

(UTC) モンロビアレイキャビク
Greenwich Standard Time

(UTC) 協定世界時
UTC

(UTC+01:00) アムステルダム、ベルリン、ベルン、ローマ、ストックホルム、ウィーン
W. Europe Standard Time

(UTC+01:00) ウィントフック
Namibia Standard Time

(UTC+01:00) サラエボスコピエワルシャワザグレブ
Central European Standard Time

(UTC+01:00) ブリュッセルコペンハーゲンマドリード、パリ
Romance Standard Time

(UTC+01:00) ベオグラードブラチスラバブダペストリュブリャナプラハ
Central Europe Standard Time

(UTC+01:00) 西中央アフリカ
W. Central Africa Standard Time

(UTC+02:00) アテネブカレスト
GTB Standard Time

(UTC+02:00) アンマン
Jordan Standard Time

(UTC+02:00) イスタンブール
Turkey Standard Time

(UTC+02:00) エルサレム
Israel Standard Time

(UTC+02:00) カイロ
Egypt Standard Time

(UTC+02:00) ダマスカス
Syria Standard Time

(UTC+02:00) ニコシア
E. Europe Standard Time

(UTC+02:00) ハラーレ、プレトリア
South Africa Standard Time

(UTC+02:00) ベイルート
Middle East Standard Time

(UTC+02:00) ヘルシンキキエフ、リガ、ソフィア、タリン、ビリニュス
FLE Standard Time

(UTC+03:00) カリーニングラードミンスク
Kaliningrad Standard Time

(UTC+03:00) クウェート、リヤド
Arab Standard Time

(UTC+03:00) ナイロビ
E. Africa Standard Time

(UTC+03:00) バグダッド
Arabic Standard Time

(UTC+03:30) テヘラン
Iran Standard Time

(UTC+04:00) アブダビ、マスカット
Arabian Standard Time

(UTC+04:00) エレバン
Caucasus Standard Time

(UTC+04:00) トビリシ
Georgian Standard Time

(UTC+04:00) バク
Azerbaijan Standard Time

(UTC+04:00) ポート ルイス
Mauritius Standard Time

(UTC+04:00) モスクワ、サンクトペテルブルクボルゴグラード
Russian Standard Time

(UTC+04:30) カブール
Afghanistan Standard Time

(UTC+05:00) イスラマバード、カラチ
Pakistan Standard Time

(UTC+05:00) タシケント
West Asia Standard Time

(UTC+05:30) スリジャヤワルダナプラコッテ
Sri Lanka Standard Time

(UTC+05:30) チェンナイ、コルカタ、ムンバイ、ニューデリー
India Standard Time

(UTC+05:45) カトマンズ
Nepal Standard Time

(UTC+06:00) アスタナ
Central Asia Standard Time

(UTC+06:00) エカテリンバーグ
Ekaterinburg Standard Time

(UTC+06:00) ダッカ
Bangladesh Standard Time

(UTC+06:30) ヤンゴン (ラングーン)
Myanmar Standard Time

(UTC+07:00) ノボシビルスク
N. Central Asia Standard Time

(UTC+07:00) バンコクハノイジャカルタ
SE Asia Standard Time

(UTC+08:00) ウランバートル
Ulaanbaatar Standard Time

(UTC+08:00) クアラルンプール、シンガポール
Singapore Standard Time

(UTC+08:00) クラスノヤルスク
North Asia Standard Time

(UTC+08:00) パース
W. Australia Standard Time

(UTC+08:00) 台北
Taipei Standard Time

(UTC+08:00) 北京、重慶香港特別行政区ウルムチ
China Standard Time

(UTC+09:00) イルクーツク
North Asia East Standard Time

(UTC+09:00) ソウル
Korea Standard Time

(UTC+09:00) 大阪、札幌、東京
Tokyo Standard Time

(UTC+09:30) アデレード
Cen. Australia Standard Time

(UTC+09:30) ダーウィン
AUS Central Standard Time

(UTC+10:00) キャンベラ、メルボルンシドニー
AUS Eastern Standard Time

(UTC+10:00) グアム、ポートモレスビー
West Pacific Standard Time

(UTC+10:00) ブリズベン
E. Australia Standard Time

(UTC+10:00) ホバート
Tasmania Standard Time

(UTC+10:00) ヤクーツク
Yakutsk Standard Time

(UTC+11:00) ウラジオストク
Vladivostok Standard Time

(UTC+11:00) ソロモン諸島ニューカレドニア
Central Pacific Standard Time

(UTC+12:00) オークランドウェリントン
New Zealand Standard Time

(UTC+12:00) フィジー
Fiji Standard Time

(UTC+12:00) マガダン
Magadan Standard Time

(UTC+12:00) 協定世界時+12
UTC+12

(UTC+13:00) サモア
Samoa Standard Time

(UTC+13:00) ヌクアロファ
Tonga Standard Time