无忧启动论坛

 找回密码
 注册
搜索

应答文件与批处理配合,用官方原版镜像安装自己的纯净系统

查看数: 14225 | 评论数: 21 | 收藏 23
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2019-7-2 10:24

正文摘要:

本帖最后由 86024363 于 2019-7-2 10:49 编辑 把我个人使用的流程和设置晾出来,分享给需要的人,也给自己做个备份。希望安装系统不再繁琐而是enjoy。 用于原版镜像安装windows桌面操作系统。我用win10-1903x64 ...

回复

enet 发表于 2021-3-19 09:28:48
感谢分享,仔细研究一下。
iwangz 发表于 2021-3-10 14:57:16
谢谢楼主分享应答文件与批处理配合,用官方原版镜像安装自己的纯净系统
qq328 发表于 2021-3-9 07:46:32
初始化ewf,重启后就可以识别C盘
xttn001 发表于 2020-8-29 07:57:41

谢谢分享
zdfy 发表于 2020-7-6 10:52:39
感谢分享
knliu 发表于 2020-5-11 05:53:10
学习了,多谢楼主分享
2012TR 发表于 2020-5-9 09:34:54
不能下载附件学习,悲剧了。
lsplsp 发表于 2020-1-10 20:15:07
不错,支持一下!
devilma 发表于 2019-12-17 22:35:17
不错的说。收藏了。。。。
r55ye 发表于 2019-12-17 10:18:18
谢谢分享。。。
NicoNico 发表于 2019-10-16 19:10:07
目前纠结于软件安装这一块,借用楼主文件一下
enet 发表于 2019-7-3 10:28:44
感谢分享,仔细研究一下。
86024363 发表于 2019-7-2 21:15:45
补充一个ewf搬家的办法
正常使用的带ewf的系统克隆到另一个vhd(x)之后,启动这个vhd(x),ewf提示错误,系统找不到路径,是由于这个新的vhd(x)磁盘签名改变了,解决方法:把新的磁盘签名填入注册表。具体方法和帖中已说的没找到C盘的解决方法一样。
dlwfdlikuan 发表于 2019-7-2 20:28:57
谢谢楼主分享经验,方便许多人,活雷锋呀!
新空气 发表于 2019-7-2 14:41:45
谢啦!~值得参考借鉴
xq8751 发表于 2019-7-2 13:30:46
谢谢分享
86024363 发表于 2019-7-2 13:15:24
本帖最后由 86024363 于 2019-7-2 13:21 编辑
chishingchan 发表于 2019-7-2 11:11
应答文件有值得借鉴的地方,但是更多值得改善的地方!
(以下只针对应答文件的建议)
1、改善层次,阅读 ...


谢谢你的意见!
我来解释一下,不是反驳,是讨论,非常谢谢你能给出建议
编辑替换所有的"amd64" 为"x86"可保存为支持32位系统的应答文件,我觉得另存一个32位系统的应答文件比较好,放在一起会比较长。
激活管理员的指令原先我也这样的,放在oobe阶段,但是会拖慢时间,不知为什么。所以我还是放在部署阶段了,还是命令行速度快。我在虚拟机(放在内存运行)4分半钟进桌面。
推迟一个阶段运行:,添加注册表"RunOnce"可以做很多事情,和在"%SystemRoot%\Setup\Scripts目录放置SetupComplete.cmd,系统会自动执行,效果是一样的,我的例子是全部集中在soft.bat里面了。
设置计算机名使得局域网里的几台计算机好辨认。
贴出我的应答文件,欢迎指点改进。呵呵,看起来好像全是反驳,其实不是,真心谢谢你。

<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComputerName>xwc</ComputerName>
<CopyProfile>true</CopyProfile>
<TimeZone>China Standard Time</TimeZone>
</component>
<component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableSR>1</DisableSR>
</component>
<component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DefaultConsent>4</DefaultConsent>
<DisableWER>1</DisableWER>
</component>
<component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CEIPEnabled>0</CEIPEnabled>
</component>
<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EnableLUA>false</EnableLUA>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Home_Page>https://www.2345.com</Home_Page>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
</component>
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>EnableAdmin</Description>
<Path>cmd /c net user Administrator /active:yes</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>EnableAdmin_ploc</Description>
<Path>cmd /c net user Administrator_ploc /active:yes</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>ewf</Description>
<Path>%systemdrive%\set\ewf.bat</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-WinRE-RecoveryAgent" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UninstallWindowsRE>true</UninstallWindowsRE>
</component>
<component name="Security-Malware-Windows-Defender" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>0804:00000409</InputLocale>
<SystemLocale>zh-CN</SystemLocale>
<UILanguage>zh-CN</UILanguage>
<UserLocale>zh-CN</UserLocale>
<UILanguageFallback>zh-CN</UILanguageFallback>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>%systemdrive%\set\soft.bat</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
2010sya 发表于 2019-7-2 12:26:52
谢谢分享
liujun2000 发表于 2019-7-2 12:09:05
谢谢
chishingchan 发表于 2019-7-2 11:11:44
本帖最后由 chishingchan 于 2019-7-2 11:57 编辑

应答文件有值得借鉴的地方,但是更多值得改善的地方!
(以下只针对应答文件的建议)
1、改善层次,阅读方便
层次格式:
  1.                 <component name="Microsoft-Windows-ErrorReportingCore" 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">
  2.                         <DefaultConsent>4</DefaultConsent>
  3.                         <DisableWER>1</DisableWER>
  4.                 </component>
复制代码

2、支持双架构:
  1.                 <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  2.                         <DefaultConsent>4</DefaultConsent>
  3.                         <DisableWER>1</DisableWER>
  4.                 </component>
  5.                 <component name="Microsoft-Windows-ErrorReportingCore" 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">
  6.                         <DefaultConsent>4</DefaultConsent>
  7.                         <DisableWER>1</DisableWER>
  8.                 </component>
复制代码

3、激活管理员:
  1.                         <AutoLogon>
  2.                                 <Username>Administrator</Username>
  3.                                 <Enabled>true</Enabled>
  4.                                 <LogonCount>1</LogonCount>
  5.                         </AutoLogon>
复制代码

4、推迟一个阶段运行:
  1.                         <RunSynchronous>
  2.                                 <RunSynchronousCommand wcm:action="add">
  3.                                         <Description>RunOnce</Description>
  4.                                         <Order>1</Order>
  5.                                         <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /f /v "CMD" /t REG_SZ /d "%SystemRoot%\Setup\Complete.cmd"</Path>
  6.                                 </RunSynchronousCommand>
  7.                         </RunSynchronous>
复制代码

5、不要设置电脑名称(不解释)

点评

谢谢你的意见! 我来解释一下,不是反驳,是讨论,非常谢谢你能给出建议 编辑替换所有的"amd64" 为"x86"可保存为支持32位系统的应答文件,我觉得另存一个32位系统的应答文件比较好,放在一起会比较长。  详情 回复 发表于 2019-7-2 13:15
苏州本是 发表于 2019-7-2 10:38:36
应答文件与批处理配合,用官方原版镜像安装自己的纯净系统,这是个好好主意!谢谢分享!

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-19 00:28

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表