Microsoft KB Archive/926181

= How to add Input Method Editor (IME) support to Windows PE 2.0 =

Article ID: 926181

Article Last Modified on 3/15/2007

-

APPLIES TO


 * Windows Vista Business
 * Windows Vista Enterprise
 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Starter
 * Windows Vista Ultimate
 * Windows Vista Home Premium 64-bit edition
 * Windows Vista Home Basic 64-bit edition
 * Windows Vista Ultimate 64-bit edition
 * Windows Vista Business 64-bit edition

-



INTRODUCTION
Windows Vista includes Windows Preinstallation Environment (Windows PE) version 2.0. An Input Method Editor (IME) lets you type double-byte characters in some languages. For example, you can use an IME to type such characters in Japanese. By default, Windows PE version 2.0 does not include support for an IME. This article describes steps to add this support to Windows PE.

To enable IME support in Windows Vista, you must install the OEM Preinstallation Kit (OPK) or the Windows Automated Installation Kit (AIK) on the same language version of Windows Vista as the IME that you want to use. For example, for Japanese IME support, you must install the OPK or the AIK on a Japanese version of Windows Vista.



MORE INFORMATION
To add IME support in Windows Vista, follow these steps:  Paste one of the following scripts to a text file. Then, save the text file by using the name that is provided here.

Note You cannot run these scripts in Microsoft Windows Server 2003, in Microsoft Windows XP, or in earlier versions of Windows.   To add support for a Traditional Chinese IME, paste this script to a new file that is named WinPEIMETC.txt. echo Preparing IME folder for WinPE. setlocal

set WinPEWinDir= set IMEBinSrc=%windir%

md %WinPEWinDir%\IME md %WinPEWinDir%\IME\IMETC10 md %WinPEWinDir%\IME\IMETC10\DICTS md %WinPEWinDir%\IME\IMETC10\HELP

md %WinPEWinDir%\System32\IME md %WinPEWinDir%\System32\IME\IMETC10 md %WinPEWinDir%\System32\IME\shared

rem SYSTEM32 folder (Cicero) %windir%\system32\xcopy %IMEBinSrc%\System32\CTFMON.EXE %WinPEWinDir%\System32\CTFMON.EXE /y /d %windir%\system32\xcopy %IMEBinSrc%\System32\MSUTB.DLL  %WinPEWinDir%\System32\MSUTB.DLL /y /d %windir%\system32\xcopy %IMEBinSrc%\System32\MsCtfMonitor.DLL  %WinPEWinDir%\System32\MsCtfMonitor.DLL /y /d %windir%\system32\xcopy %IMEBinSrc%\System32\PINTLGNT.IME %WinPEWinDir%\System32 /y /d

%windir%\system32\xcopy %IMEBinSrc%\IME\IMETC10 %WinPEWinDir%\IME\IMETC10 /s /y /d

rem IMETC10 folder %windir%\system32\xcopy %IMEBinSrc%\System32\IME\IMETC10 %WinPEWinDir%\System32\IME\IMETC10 /s /y /d

rem shared folder %windir%\system32\xcopy %IMEBinSrc%\System32\IME\shared %WinPEWinDir%\System32\IME\shared /s /y /d

rem Creating some batch files... @echo @echo off                                                  >  %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MSUTB.DLL                  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MsCtfMonitor.DLL           >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@for %%i in (IMEAPIS.DLL imecfm.dll IMEPADSM.DLL IMETIP.DLL imever.dll MSCAND20.DLL) do @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\%%i >> %WinPEWinDir%\System32\IME\IMEReg.CMD @for %%i in (ImTCCfg.DLL ImTCCore.dll IMTCTIP.dll imtcui.DLL) do @echo REGSVR32 /S %%WinDir%%\System32\IME\IMETC10\%%i >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@rem @echo REG ADD &quot;HKLM\Software\Microsoft\CTF&quot; /v &quot;StartOnNoTaskEng&quot; /t REG_DWORD /d 1 ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}                                                                                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}\LanguageProfile                                                                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}\LanguageProfile\0x00000404                                                            ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}\LanguageProfile\0x00000404\{B2F9C502-1742-11D4-9790-0080C882687E}                     ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}\LanguageProfile\0x00000404\{B2F9C502-1742-11D4-9790-0080C882687E} /v &quot;Enable&quot; /t REG_DWORD /d 1                                                                                                    ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem                                                                                                           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000404                                                                                                ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31}                                                         ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000                                                ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;CLSID&quot; /d &quot;{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}&quot; ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;Profile&quot; /d &quot;{B2F9C502-1742-11D4-9790-0080C882687E}&quot; ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;KeyboardLayout&quot; /t REG_DWORD /d 0           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\Language /v &quot;00000000&quot; /d &quot;00000404&quot;           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\HiddenDummyLayouts /v &quot;00000404&quot; /d &quot;00000404&quot;           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Default&quot; /d &quot;{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}&quot; /f        ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Profile&quot; /d &quot;{B2F9C502-1742-11D4-9790-0080C882687E}&quot; /f        ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000404\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;KeyboardLayout&quot; /t REG_DWORD /d &quot;04040404&quot; /f                  ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo start CTFMON.EXE >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@if not exist %WinPEWinDir%\System32\startnet.org copy %WinPEWinDir%\System32\startnet.cmd %WinPEWinDir%\System32\startnet.org

@echo @echo off                              >  %WinPEWinDir%\System32\STARTNET.CMD @echo echo Preparing WinPE ... >> %WinPEWinDir%\System32\STARTNET.CMD @type %WinPEWinDir%\System32\STARTNET.org    >> %WinPEWinDir%\System32\STARTNET.CMD @echo @echo. >> %WinPEWinDir%\System32\STARTNET.CMD @echo Call %%WinDir%%\System32\IME\IMEReg.CMD >> %WinPEWinDir%\System32\STARTNET.CMD

endlocal   To add support for a Simplified Chinese IME, paste this script to a new file that is named WinPEIMESC.txt. echo Preparing IME folder for WinPE. setlocal

set WinPEWinDir= set IMEBinSrc=%windir%

md %WinPEWinDir%\IME md %WinPEWinDir%\IME\IMESC5 md %WinPEWinDir%\IME\IMESC5\DICTS md %WinPEWinDir%\IME\IMESC5\HELP

md %WinPEWinDir%\System32\IME md %WinPEWinDir%\System32\IME\IMESC5 md %WinPEWinDir%\System32\IME\shared

rem SYSTEM32 folder (Cicero) %windir%\system32\xcopy %IMEBinSrc%\System32\CTFMON.EXE %WinPEWinDir%\System32\CTFMON.EXE /y /d %windir%\system32\xcopy %IMEBinSrc%\System32\MSUTB.DLL  %WinPEWinDir%\System32\MSUTB.DLL /y /d %windir%\system32\xcopy %IMEBinSrc%\System32\MsCtfMonitor.DLL  %WinPEWinDir%\System32\MsCtfMonitor.DLL /y /d %windir%\system32\xcopy %IMEBinSrc%\System32\PINTLGNT.IME %WinPEWinDir%\System32 /y /d

%windir%\system32\xcopy %IMEBinSrc%\IME\IMESC5 %WinPEWinDir%\IME\IMESC5 /s /y /d

rem IMESC5 folder %windir%\system32\xcopy %IMEBinSrc%\System32\IME\IMESC5 %WinPEWinDir%\System32\IME\IMESC5 /s /y /d

rem shared folder %windir%\system32\xcopy %IMEBinSrc%\System32\IME\shared %WinPEWinDir%\System32\IME\shared /s /y /d

rem Creating some batch files... @echo @echo off                                                  >  %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MSUTB.DLL                  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MsCtfMonitor.DLL           >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@for %%i in (IMEAPIS.DLL imecfm.dll IMEPADSM.DLL IMETIP.DLL imever.dll IMJKAPI.DLL MSCAND20.DLL) do @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\%%i >> %WinPEWinDir%\System32\IME\IMEReg.CMD @for %%i in (ImSCCfg.DLL ImSCCore.dll IMSCTIP.dll imscui.DLL PMIGRATE.dll) do @echo REGSVR32 /S %%WinDir%%\System32\IME\IMESC5\%%i >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@rem @echo REG ADD &quot;HKLM\Software\Microsoft\CTF&quot; /v &quot;StartOnNoTaskEng&quot; /t REG_DWORD /d 1 ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}                                                                                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile                                                                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile\0x00000804                                                            ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile\0x00000804\{F3BA9077-6C7E-11D4-97FA-0080C882687E}                     ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile\0x00000804\{F3BA9077-6C7E-11D4-97FA-0080C882687E} /v &quot;Enable&quot; /t REG_DWORD /d 1                                                                                                    ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem                                                                                                           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804                                                                                                ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}                                                         ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000                                                ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;CLSID&quot; /d &quot;{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}&quot; ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;Profile&quot; /d &quot;{F3BA9077-6C7E-11D4-97FA-0080C882687E}&quot; ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;KeyboardLayout&quot; /t REG_DWORD /d 0           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\Language /v &quot;00000000&quot; /d &quot;00000804&quot;           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @rem @echo REG ADD HKCU\Software\Microsoft\CTF\HiddenDummyLayouts /v &quot;00000804&quot; /d &quot;00000804&quot;           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Default&quot; /d &quot;{00000000-0000-0000-0000-000000000000}&quot; /f        ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Profile&quot; /d &quot;{00000000-0000-0000-0000-000000000000}&quot; /f        ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;KeyboardLayout&quot; /t REG_DWORD /d &quot;00000804&quot; /f                  ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo start CTFMON.EXE >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@if not exist %WinPEWinDir%\System32\startnet.org copy %WinPEWinDir%\System32\startnet.cmd %WinPEWinDir%\System32\startnet.org

@echo @echo off                              >  %WinPEWinDir%\System32\STARTNET.CMD @echo echo Preparing WinPE ... >> %WinPEWinDir%\System32\STARTNET.CMD @type %WinPEWinDir%\System32\STARTNET.org    >> %WinPEWinDir%\System32\STARTNET.CMD @echo @echo. >> %WinPEWinDir%\System32\STARTNET.CMD @echo Call %%WinDir%%\System32\IME\IMEReg.CMD >> %WinPEWinDir%\System32\STARTNET.CMD

endlocal   To add support for a Japanese IME, paste this script to a new file that is named WinPEIMEJP.txt. echo Preparing IME folder for WinPE. setlocal

set WinPEWinDir= set IMEBinSrc=%windir%

md %WinPEWinDir%\IME md %WinPEWinDir%\IME\IMEJP10 md %WinPEWinDir%\IME\IMEJP10\DICTS

md %WinPEWinDir%\System32\IME md %WinPEWinDir%\System32\IME\IMEJP10 md %WinPEWinDir%\System32\IME\shared

rem SYSTEM32 folder (Cicero) copy /y %IMEBinSrc%\System32\CTFMON.EXE %WinPEWinDir%\System32\CTFMON.EXE copy /y %IMEBinSrc%\System32\MSUTB.DLL  %WinPEWinDir%\System32\MSUTB.DLL copy /y %IMEBinSrc%\System32\MsCtfMonitor.DLL  %WinPEWinDir%\System32\MsCtfMonitor.DLL

rem DICTS folder copy /y %IMEBinSrc%\IME\IMEJP10\DICTS\IMJPST.DIC %WinPEWinDir%\IME\IMEJP10\DICTS\IMJPST.DIC copy /y %IMEBinSrc%\IME\IMEJP10\DICTS\IMJPGN.GRM %WinPEWinDir%\IME\IMEJP10\DICTS\IMJPGN.GRM

rem SYSTEM32 folder copy /y %IMEBinSrc%\System32\IMJP10.IME %WinPEWinDir%\System32\IMJP10.IME copy /y %IMEBinSrc%\System32\IMJP10K.DLL %WinPEWinDir%\System32\IMJP10K.DLL

rem IMEJP10 folder copy /y %IMEBinSrc%\System32\IME\IMEJP10\IMJPAPI.DLL %WinPEWinDir%\System32\IME\IMEJP10\IMJPAPI.DLL copy /y %IMEBinSrc%\System32\IME\IMEJP10\IMJPTIP.DLL %WinPEWinDir%\System32\IME\IMEJP10\IMJPTIP.DLL copy /y %IMEBinSrc%\System32\IME\IMEJP10\IMJPMGR.EXE %WinPEWinDir%\System32\IME\IMEJP10\IMJPMGR.EXE

rem shared folder copy /y %IMEBinSrc%\System32\IME\shared\IMEAPIS.DLL  %WinPEWinDir%\System32\IME\shared\IMEAPIS.DLL copy /y %IMEBinSrc%\System32\IME\shared\IMETIP.DLL   %WinPEWinDir%\System32\IME\shared\IMETIP.DLL copy /y %IMEBinSrc%\System32\IME\shared\IMJKAPI.DLL  %WinPEWinDir%\System32\IME\shared\IMJKAPI.DLL copy /y %IMEBinSrc%\System32\IME\shared\MSCAND20.DLL %WinPEWinDir%\System32\IME\shared\MSCAND20.DLL

rem Creating some batch files... @echo @echo off                                                  >  %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MSUTB.DLL                  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MsCtfMonitor.DLL           >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REGSVR32 /S %%WinDir%%\System32\IMJP10K.DLL                >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\IMETIP.DLL      >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\IMEAPIS.DLL     >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\IMJKAPI.DLL     >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\MSCAND20.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\IMEJP10\IMJPTIP.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\IMEJP10\IMJPAPI.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@rem @echo REG ADD &quot;HKLM\Software\Microsoft\CTF&quot; /v &quot;StartOnNoTaskEng&quot; /t REG_DWORD /d 1 ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD &quot;HKLM\Software\Microsoft\IMEJP&quot;                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEJP\10.0&quot;                  ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEJP\10.0\directories&quot;      ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEJP\10.0\directories&quot; /v &quot;DictionaryPath&quot; /t REG_EXPAND_SZ /d %%SystemRoot%%\IME\IMEJP10\DICTS  ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEJP\10.0\directories&quot; /v &quot;ModulePath&quot;    /t REG_EXPAND_SZ /d %%SystemRoot%%\System32\IME\IMEJP10 ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{03B5835F-F03C-411B-9CE2-AA23E1171E36}                                                                                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{03B5835F-F03C-411B-9CE2-AA23E1171E36}\LanguageProfile                                                                       ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{03B5835F-F03C-411B-9CE2-AA23E1171E36}\LanguageProfile\0x00000411                                                            ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{03B5835F-F03C-411B-9CE2-AA23E1171E36}\LanguageProfile\0x00000411\{A76C93D9-5523-4E90-AAFA-4DB112F9AC76}                     ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{03B5835F-F03C-411B-9CE2-AA23E1171E36}\LanguageProfile\0x00000411\{A76C93D9-5523-4E90-AAFA-4DB112F9AC76} /v &quot;Enable&quot; /t REG_DWORD /d 1                                                                                                    ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem                                                                                                           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000411                                                                                                ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31}                                                         ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000                                                ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;CLSID&quot; /d &quot;{03B5835F-F03C-411B-9CE2-AA23E1171E36}&quot; ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;Profile&quot; /d &quot;{A76C93D9-5523-4E90-AAFA-4DB112F9AC76}&quot; ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;KeyboardLayout&quot; /t REG_DWORD /d 0           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\Language /v &quot;00000000&quot; /d &quot;00000411&quot;           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\HiddenDummyLayouts /v &quot;00000411&quot; /d &quot;00000411&quot;           ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Default&quot; /d &quot;{03B5835F-F03C-411B-9CE2-AA23E1171E36}&quot; /f        ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Profile&quot; /d &quot;{A76C93D9-5523-4E90-AAFA-4DB112F9AC76}&quot; /f        ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000411\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;KeyboardLayout&quot; /t REG_DWORD /d &quot;04110411&quot; /f                  ^> nul >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo start CTFMON.EXE >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@if not exist %WinPEWinDir%\System32\startnet.org copy %WinPEWinDir%\System32\startnet.cmd %WinPEWinDir%\System32\startnet.org

@echo @echo off                              >  %WinPEWinDir%\System32\STARTNET.CMD @echo echo Preparing WinPE ... >> %WinPEWinDir%\System32\STARTNET.CMD @type %WinPEWinDir%\System32\STARTNET.org    >> %WinPEWinDir%\System32\STARTNET.CMD @echo @echo. >> %WinPEWinDir%\System32\STARTNET.CMD @echo Call %%WinDir%%\System32\IME\IMEReg.CMD >> %WinPEWinDir%\System32\STARTNET.CMD

endlocal   To add support for a Korean IME, paste this script to a new file that is named WinPEIMEKR.txt. echo Preparing IME folder for WinPE. setlocal

set WinPEWinDir= set IMEBinSrc=%windir%

md %WinPEWinDir%\IME md %WinPEWinDir%\IME\IMEKR8 md %WinPEWinDir%\IME\IMEKR8\DICTS

md %WinPEWinDir%\System32\IME md %WinPEWinDir%\System32\IME\IMEKR8 md %WinPEWinDir%\System32\IME\IMEKR8\DICTS md %WinPEWinDir%\System32\IME\shared

rem Fonts folder copy /y %IMEBinSrc%\Fonts\gulim.ttc %WinPEWinDir%\Fonts\gulim.ttc

rem SYSTEM32 folder (Cicero) copy /y %IMEBinSrc%\System32\CTFMON.EXE %WinPEWinDir%\System32\CTFMON.EXE copy /y %IMEBinSrc%\System32\MSUTB.DLL  %WinPEWinDir%\System32\MSUTB.DLL copy /y %IMEBinSrc%\System32\MsCtfMonitor.DLL  %WinPEWinDir%\System32\MsCtfMonitor.DLL

rem DICTS folder copy /y %IMEBinSrc%\IME\IMEKR8\DICTS\IMKRHJD.LEX %WinPEWinDir%\IME\IMEKR8\DICTS\IMKRHJD.LEX

rem SYSTEM32 folder copy /y %IMEBinSrc%\System32\IMKR80.IME %WinPEWinDir%\System32\IMKR80.IME

rem IMEKR8 folder copy /y %IMEBinSrc%\System32\IME\IMEKR8\IMKRAPI.DLL %WinPEWinDir%\System32\IME\IMEKR8\IMKRAPI.DLL copy /y %IMEBinSrc%\System32\IME\IMEKR8\IMKRTIP.DLL %WinPEWinDir%\System32\IME\IMEKR8\IMKRTIP.DLL copy /y %IMEBinSrc%\System32\IME\IMEKR8\DICTS\IMKRHJD.DLL %WinPEWinDir%\System32\IME\IMEKR8\DICTS\IMKRHJD.DLL

rem shared folder copy /y %IMEBinSrc%\System32\IME\shared\IMEAPIS.DLL  %WinPEWinDir%\System32\IME\shared\IMEAPIS.DLL copy /y %IMEBinSrc%\System32\IME\shared\IMETIP.DLL   %WinPEWinDir%\System32\IME\shared\IMETIP.DLL copy /y %IMEBinSrc%\System32\IME\shared\IMJKAPI.DLL  %WinPEWinDir%\System32\IME\shared\IMJKAPI.DLL copy /y %IMEBinSrc%\System32\IME\shared\MSCAND20.DLL %WinPEWinDir%\System32\IME\shared\MSCAND20.DLL

rem Creating some batch files... @echo @echo off                                                  >  %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MSUTB.DLL                  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\MsCtfMonitor.DLL           >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REGSVR32 /S %%WinDir%%\System32\IME\shared\IMETIP.DLL      >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\IMEAPIS.DLL     >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\IMJKAPI.DLL     >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\shared\MSCAND20.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\IMEKR8\IMKRTIP.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\IMEKR8\IMKRAPI.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REGSVR32 /S %%WinDir%%\System32\IME\IMEKR8\DICTS\IMKRHJD.DLL    >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD &quot;HKLM\Software\Microsoft\CTF&quot; /v &quot;StartOnNoTaskEng&quot; /t REG_DWORD /d 1 >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD &quot;HKLM\Software\Microsoft\IMEKR&quot;                       >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEKR\8.0&quot;                  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEKR\8.0&quot; /v &quot;Dictionary&quot; /t REG_EXPAND_SZ /d %%SystemRoot%%\IME\IMEKR8\DICTS\IMKRHJD.LEX  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEKR\8.0\directories&quot;      >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEKR\8.0\directories&quot; /v &quot;DictionaryPath&quot; /t REG_EXPAND_SZ /d %%SystemRoot%%\IME\IMEKR8\DICTS  >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD &quot;HKLM\Software\Microsoft\IMEKR\8.0\directories&quot; /v &quot;ModulePath&quot;    /t REG_EXPAND_SZ /d %%SystemRoot%%\System32\IME\IMEKR8 >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{A028AE76-01B1-46C2-99C4-ACD9858AE02F}                                                                                       >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{A028AE76-01B1-46C2-99C4-ACD9858AE02F}\LanguageProfile                                                                       >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{A028AE76-01B1-46C2-99C4-ACD9858AE02F}\LanguageProfile\0x00000412                                                            >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{A028AE76-01B1-46C2-99C4-ACD9858AE02F}\LanguageProfile\0x00000412\{B5FE1F02-D5F2-4445-9C03-C568F23C99A1}                     >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\TIP\{A028AE76-01B1-46C2-99C4-ACD9858AE02F}\LanguageProfile\0x00000412\{B5FE1F02-D5F2-4445-9C03-C568F23C99A1} /v &quot;Enable&quot; /t REG_DWORD /d 1                                                                                                    >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder           >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem                                                                                                           >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000412                                                                                                >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31}                                                         >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000                                                >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;CLSID&quot; /d &quot;{A028AE76-01B1-46C2-99C4-ACD9858AE02F}&quot; >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;Profile&quot; /d &quot;{B5FE1F02-D5F2-4445-9C03-C568F23C99A1}&quot; >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000 /v &quot;KeyboardLayout&quot; /t REG_DWORD /d 0           >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\SortOrder\Language /v &quot;00000000&quot; /d &quot;00000412&quot;           >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\HiddenDummyLayouts /v &quot;00000412&quot; /d &quot;00000412&quot;           >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Default&quot; /d &quot;{A028AE76-01B1-46C2-99C4-ACD9858AE02F}&quot; /f        >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;Profile&quot; /d &quot;{B5FE1F02-D5F2-4445-9C03-C568F23C99A1}&quot; /f        >> %WinPEWinDir%\System32\IME\IMEReg.CMD @echo REG ADD HKCU\Software\Microsoft\CTF\Assemblies\0x00000412\{34745C63-B2F0-4784-8B67-5E12C8701A31} /v &quot;KeyboardLayout&quot; /t REG_DWORD /d &quot;04120412&quot; /f                  >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@echo start CTFMON.EXE >> %WinPEWinDir%\System32\IME\IMEReg.CMD

@if not exist %WinPEWinDir%\System32\startnet.org copy %WinPEWinDir%\System32\startnet.cmd %WinPEWinDir%\System32\startnet.org

@echo @echo off                              >  %WinPEWinDir%\System32\STARTNET.CMD @echo echo Preparing WinPE ... >> %WinPEWinDir%\System32\STARTNET.CMD @type %WinPEWinDir%\System32\STARTNET.org    >> %WinPEWinDir%\System32\STARTNET.CMD @echo @echo. >> %WinPEWinDir%\System32\STARTNET.CMD @echo Call %%WinDir%%\System32\IME\IMEReg.CMD >> %WinPEWinDir%\System32\STARTNET.CMD

endlocal </li></ul> </li> Open the file that you created in step 1 in a text editor. For example, open the file in Notepad.</li>  Select the following text, and then type C:\WinPE_x86 to replace it. <Path to Windows Directory of your WinPE image (i.e. C:\myWinPE\Windows)> </li> Save the file, and then exit Notepad.</li> Rename the file by using the .cmd file name extension. For example, rename WinPEIMETC.txt as WinPEIMETC.cmd.

Note This step creates a batch file that copies files to the C:\WinPE_x86 folder. The batch file also creates a Startnet.cmd file in the C:\MyWinPE\Windows\System32\IME folder.</li> Install the OPK or the Windows AIK.</li> Start the Windows PE Tools command prompt by using an account that has administrative credentials.

Note Make sure that you start a version of Windows PE that has the appropriate language packs installed. For example, for Japanese IME support, the Japanese language packs must be installed. For more information about how to add and configure language packs for Windows PE, see the Winpe.chm file.</li> Type the following commands. After each line, press ENTER.

Note If you are using a localized OPK or a localized AIK, you do not have to follow this step. By default, the localized version uses these settings.

copype x86 C:\WinPE_x86

imagex /mountrw C:\WinPE_x86\winpe.wim 1 C:\WinPE_x86\mount

</li> Type one of the following sets of commands, according to the language you want to use. After each line, press ENTER. <ul> Simplified Chinese

peimg /install=*zh-cn* C:\WinPE_x86\mount

peimg /lang=zh-cn C:\WinPE_x86\mount

</li> Traditional Chinese

peimg /install=*zh-tw* C:\WinPE_x86\mount

peimg /lang=zh-tw C:\WinPE_x86\mount

</li> Japanese

peimg /install=*ja-jp* C:\WinPE_x86\mount

peimg /lang=ja-jp C:\WinPE_x86\mount

</li> Korean

peimg /install=*ko-kr* C:\WinPE_x86\mount

peimg /lang=ko-kr C:\WinPE_x86\mount

</li></ul> </li> Run the batch file that you created in step 5.</li> Type the following commands at the Windows PE Tools command prompt. After each line, press ENTER.

imagex /unmount /commit C:\WinPE_x86\mount

imagex /export C:\WinPE_x86\winpe.wim 1 C:\WinPE_x86\boot.wim

copy /y C:\WinPE_x86\boot.wim C:\WinPE_x86\ISO\sources\boot.wim

oscdimg -n -bC:\WinPE_x86\etfsboot.com C:\WinPE_x86\ISO C:\WinPE_JPN_IME.iso

</li> Exit the Windows PE Tools command prompt.</li></ol>

Known limitations

 * In Windows PE, IME functionality does not work in command prompt windows.
 * After all IME windows are closed, you must run Ctfmon.exe.
 * When you use an IME in Windows PE, the Software Keyboard, the IME Configuration User Interface, and Embedded Software Development Process (EUDP) tools are unavailable.

<div class="references_section">