|
|
本帖最后由 yjqd 于 2018-12-14 12:03 编辑
在必应上搜索到了:命令加配置文件添加删除输入法、复制当前用户输入法设置到新用户
解决了执行全新oobe后,之前安装的输入法不见了和输入法栏固定在任务栏上的问题
以此作记录
Windows Vista Command Line Configuration of International Settings
(Windows Vista命令行配置国际设置)
https://msdn.microsoft.com/en-ie/goglobal/bb964650(en-us).aspx
-----------------------------------------------------------------------------------
control intl.cpl,,/f:"DefaultInput.xml" DefaultInput.xml要写绝对路径
将配置文件DefaultInput.xml中的内容传递到键盘和语言设置面板
control intl.cpl,,/f:"DefaultInput.xml" 可在正在运行的系统中执行,也可用于应答文件中
control intl.cpl,,/f:"DefaultInput.xml" 也可写成rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"DefaultInput.xml"
-----------------------------------------------------------------------------------
DefaultInput.xml内容如下:
<?xml version="1.0" encoding="utf-8"?>
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<!--User List-->
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true"/>
CopySettingsToDefaultUserAcct="true"复制到新用户,输入法栏会固定在任务栏上
如果里面增加CopySettingsToSystemAcct =“true”,则会复制到“欢迎”屏幕
比如:<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct =“true” />
</gs:UserList>
<!--input preferences-->
<gs:InputPreferences>
<!--add jd keyboard-->
<gs:InputLanguageID Action="add" ID="0804:e0010804" Default="true"/>
添加极点输入法并将极点输入法设置为默认输入法
0804:e0010804是语言ID和极点输入法的键盘ID
</gs:InputPreferences>
</gs:GlobalizationServices>
-----------------------------------------------------------------------------------
应答文件内容如下:
<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>control intl.cpl,,/f:"C:\Windows\Panther\DefaultInput.xml"</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
</unattend> |
评分
-
查看全部评分
|