IT天空

 找回密码
 加入我们

手机号码,快捷登录

搜索

[求助] WDS+adk应答文件,win10批量部署自动分区失败

[复制链接]
asd347128 发表于 2020-8-3 19:52:51 | 显示全部楼层 |阅读模式

IT天空 定制版高速U盘 64G/128G/256G | 固态U盘 256G Pro/512G Pro
小白一个,刚刚跟小鱼儿大大学的封装。用ES5封装出来一个镜像。
想着用WDS批量部署下,设置了应答文件自动分区,但还是不能自动分区,只能手动分区下一步。
经过一个多礼拜找资料各种测试,还是不行。
想问下社区里大佬们,这应答文件的自动分区该怎样设置才能自动分区。
应答文件xml内容如下:
<?xml version="1.0" encoding="UTF-8"?>

-<unattend xmlns="urn:schemas-microsoft-com:unattend">


-<settings pass="generalize">


+<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-PnpSysprep">

</settings>


-<settings pass="specialize">


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Deployment">


-<RunSynchronous>


-<RunSynchronousCommand wcm:action="add">

<Order>1</Order>

<Path>%SystemDrive%\Sysprep\ES5\EsDeploy.exe /InDeploy</Path>

<Description>InDeploy</Description>

</RunSynchronousCommand>

</RunSynchronous>

</component>


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup">

<CopyProfile>true</CopyProfile>

<RegisteredOwner>TAL-GZ</RegisteredOwner>

<RegisteredOrganization>TAL</RegisteredOrganization>

<TimeZone>China Standard Time</TimeZone>

<ComputerName>*</ComputerName>

</component>


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-UnattendedJoin">


-<Identification>

<JoinWorkgroup>WorkGroup</JoinWorkgroup>

</Identification>

</component>

</settings>


-<settings pass="oobeSystem">


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup">


-<FirstLogonCommands>


-<SynchronousCommand wcm:action="add">

<Order>1</Order>

<CommandLine>%SystemDrive%\Sysprep\ES5\EsDeploy.exe /Logon</CommandLine>

<Description>FirstLogon</Description>

</SynchronousCommand>

</FirstLogonCommands>


-<LogonCommands>


-<AsynchronousCommand wcm:action="add">

<Order>1</Order>

<CommandLine>%SystemDrive%\Sysprep\ES5\EsDeploy.exe /Desktop</CommandLine>

<Description>Desktop</Description>

</AsynchronousCommand>

</LogonCommands>


-<OOBE>

<NetworkLocation>Other</NetworkLocation>

<ProtectYourPC>3</ProtectYourPC>

<HideEULAPage>true</HideEULAPage>

<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

<SkipMachineOOBE>false</SkipMachineOOBE>

<SkipUserOOBE>false</SkipUserOOBE>

</OOBE>

<RegisteredOwner>xxx-gz</RegisteredOwner>

<RegisteredOrganization>xxx</RegisteredOrganization>

<TimeZone>China Standard Time</TimeZone>

</component>


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-International-Core">

<SystemLocale>zh-CN</SystemLocale>

<UILanguage>zh-CN</UILanguage>

<UserLocale>zh-CN</UserLocale>

<InputLocale>0804:00000804</InputLocale>

</component>

</settings>


-<settings pass="windowsPE">


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-International-Core-WinPE">


-<SetupUILanguage>

<UILanguage>en-US</UILanguage>

</SetupUILanguage>

<InputLocale>zh-CN</InputLocale>

<LayeredDriver>1</LayeredDriver>

<SystemLocale>zh-CN</SystemLocale>

<UILanguage>zh-CN</UILanguage>

<UILanguageFallback>zh-CN</UILanguageFallback>

<UserLocale>zh-CN</UserLocale>

</component>


-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Setup">


-<DiskConfiguration>


-<Disk wcm:action="add">


-<CreatePartitions>


-<CreatePartition wcm:action="add">

<Order>1</Order>

<Type>Primary</Type>

<Extend>false</Extend>

<Size>200</Size>

</CreatePartition>


-<CreatePartition wcm:action="add">

<Order>2</Order>

<Type>Primary</Type>

<Extend>true</Extend>

<Size>102400</Size>

</CreatePartition>


-<CreatePartition wcm:action="add">

<Order>3</Order>

<Extend>true</Extend>

<Type>Extended</Type>

</CreatePartition>


-<CreatePartition wcm:action="add">

<Order>4</Order>

<Size>307200</Size>

<Extend>false</Extend>

<Type>Logical</Type>

</CreatePartition>

</CreatePartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>


-<ModifyPartitions>


-<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>sytem</Label>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>


-<ModifyPartition wcm:action="add">

<Active>false</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>EX1</Label>

<Letter>D</Letter>

<Order>3</Order>

<PartitionID>3</PartitionID>

</ModifyPartition>


-<ModifyPartition wcm:action="add">

<Active>false</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>OS</Label>

<Letter>C</Letter>

<Order>2</Order>

<PartitionID>2</PartitionID>

</ModifyPartition>

</ModifyPartitions>

</Disk>

<WillShowUI>OnError</WillShowUI>

<DisableEncryptedDiskProvisioning>true</DisableEncryptedDiskProvisioning>

</DiskConfiguration>


-<ImageInstall>


-<DataImage wcm:action="add">


-<InstallTo>

<DiskID>0</DiskID>

<PartitionID>2</PartitionID>

</InstallTo>


-<InstallFrom>


-<MetaData wcm:action="add">

<Value>1</Value>

<Key>/image/index</Key>

</MetaData>

</InstallFrom>

<Order>3</Order>

</DataImage>

</ImageInstall>


-<UserData>

<AcceptEula>true</AcceptEula>

</UserData>


-<WindowsDeploymentServices>


-<Login>


-<Credentials>

<Domain>xxx</Domain>

<Password>xxx.com</Password>

<Username>Administrator</Username>

</Credentials>

</Login>


-<ImageSelection>


-<InstallImage>

<ImageGroup>ImageGroup1</ImageGroup>

<Filename>install.wim</Filename>

<ImageName>2020-07-22</ImageName>

</InstallImage>


-<InstallTo>

<DiskID>0</DiskID>

<PartitionID>2</PartitionID>

</InstallTo>

</ImageSelection>

</WindowsDeploymentServices>

</component>

</settings>

<cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:d:/install.wim#2020-07-22"/>

</unattend>
最近访问 头像模式 列表模式
 楼主| asd347128 发表于 2020-8-3 19:53:50 | 显示全部楼层

活跃 48| 技术 0| 互助 0| 钻石 0

其中这是主要分区部分
-<DiskConfiguration>


-<Disk wcm:action="add">


-<CreatePartitions>


-<CreatePartition wcm:action="add">

<Order>1</Order>

<Type>Primary</Type>

<Extend>false</Extend>

<Size>200</Size>

</CreatePartition>


-<CreatePartition wcm:action="add">

<Order>2</Order>

<Type>Primary</Type>

<Extend>true</Extend>

<Size>102400</Size>

</CreatePartition>


-<CreatePartition wcm:action="add">

<Order>3</Order>

<Extend>true</Extend>

<Type>Extended</Type>

</CreatePartition>


-<CreatePartition wcm:action="add">

<Order>4</Order>

<Size>307200</Size>

<Extend>false</Extend>

<Type>Logical</Type>

</CreatePartition>

</CreatePartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>


-<ModifyPartitions>


-<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>sytem</Label>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>


-<ModifyPartition wcm:action="add">

<Active>false</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>EX1</Label>

<Letter>D</Letter>

<Order>3</Order>

<PartitionID>3</PartitionID>

</ModifyPartition>


-<ModifyPartition wcm:action="add">

<Active>false</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>OS</Label>

<Letter>C</Letter>

<Order>2</Order>

<PartitionID>2</PartitionID>

</ModifyPartition>

</ModifyPartitions>

</Disk>

<WillShowUI>OnError</WillShowUI>

<DisableEncryptedDiskProvisioning>true</DisableEncryptedDiskProvisioning>

</DiskConfiguration>
itsky2 发表于 2020-8-3 22:26:35 | 显示全部楼层

活跃 31301| 技术 77| 互助 142| 钻石 610

用Diskpart脚本分区呗
天空是个不一样的地方,在这里:
有人品、没技术可以更快的学会技术;
有人品、有技术可以更快成为高手;
没人品、有技术等于0;
没人品、没技术尽早回火星吧。
assetmain 发表于 2020-8-4 10:09:55 | 显示全部楼层

活跃 4200| 技术 0| 互助 1| 钻石 0

emmm……发个可读的

                               
登录/注册后可看大图

点评

楼下有文件 麻烦大佬帮忙看下  详情 回复 发表于 2020-8-5 09:35
 楼主| asd347128 发表于 2020-8-5 09:34:36 | 显示全部楼层

活跃 48| 技术 0| 互助 0| 钻石 0

这个是xml文件
 楼主| asd347128 发表于 2020-8-5 09:35:06 | 显示全部楼层

活跃 48| 技术 0| 互助 0| 钻石 0


这个是xml文件

Unattend22.zip

1.7 KB, 下载次数: 0, 下载积分: 活跃 -3 点

 楼主| asd347128 发表于 2020-8-5 09:35:42 | 显示全部楼层

活跃 48| 技术 0| 互助 0| 钻石 0

assetmain 发表于 2020-8-4 10:09
emmm……发个可读的

楼下有文件 麻烦大佬帮忙看下

点评

直接发代码,这样发还要活跃。  详情 回复 发表于 2020-8-5 11:37
QwerSe 发表于 2020-8-5 10:57:39 | 显示全部楼层

活跃 43| 技术 0| 互助 0| 钻石 0

无忧启动论坛看看
assetmain 发表于 2020-8-5 11:37:12 | 显示全部楼层

活跃 4200| 技术 0| 互助 1| 钻石 0

asd347128 发表于 2020-8-5 09:35
楼下有文件 麻烦大佬帮忙看下

直接发代码,这样发还要活跃。
 楼主| asd347128 发表于 2020-8-5 11:44:46 | 显示全部楼层

活跃 48| 技术 0| 互助 0| 钻石 0

  1. <?xml version="1.0" encoding="UTF-8"?>

  2. -<unattend xmlns="urn:schemas-microsoft-com:unattend">


  3. -<settings pass="generalize">


  4. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-PnpSysprep">

  5. <DoNotCleanUpNonPresentDevices>false</DoNotCleanUpNonPresentDevices>

  6. <PersistAllDeviceInstalls>false</PersistAllDeviceInstalls>

  7. </component>

  8. </settings>


  9. -<settings pass="specialize">


  10. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Deployment">


  11. +<RunSynchronous>











  12. </component>


  13. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup">

  14. <CopyProfile>true</CopyProfile>

  15. <RegisteredOwner>TAL-GZ</RegisteredOwner>

  16. <RegisteredOrganization>TAL</RegisteredOrganization>

  17. <TimeZone>China Standard Time</TimeZone>

  18. <ComputerName>*</ComputerName>

  19. </component>


  20. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-UnattendedJoin">


  21. -<Identification>

  22. <JoinWorkgroup>WorkGroup</JoinWorkgroup>

  23. </Identification>

  24. </component>

  25. </settings>


  26. -<settings pass="oobeSystem">


  27. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup">


  28. -<FirstLogonCommands>


  29. -<SynchronousCommand wcm:action="add">

  30. <Order>1</Order>

  31. <CommandLine>%SystemDrive%\Sysprep\ES5\EsDeploy.exe /Logon</CommandLine>

  32. <Description>FirstLogon</Description>

  33. </SynchronousCommand>

  34. </FirstLogonCommands>


  35. -<LogonCommands>


  36. -<AsynchronousCommand wcm:action="add">

  37. <Order>1</Order>

  38. <CommandLine>%SystemDrive%\Sysprep\ES5\EsDeploy.exe /Desktop</CommandLine>

  39. <Description>Desktop</Description>

  40. </AsynchronousCommand>

  41. </LogonCommands>


  42. -<OOBE>

  43. <NetworkLocation>Other</NetworkLocation>

  44. <ProtectYourPC>3</ProtectYourPC>

  45. <HideEULAPage>true</HideEULAPage>

  46. <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

  47. <SkipMachineOOBE>false</SkipMachineOOBE>

  48. <SkipUserOOBE>false</SkipUserOOBE>

  49. </OOBE>

  50. <RegisteredOwner>xxx-gz</RegisteredOwner>

  51. <RegisteredOrganization>xxx</RegisteredOrganization>

  52. <TimeZone>China Standard Time</TimeZone>

  53. </component>


  54. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-International-Core">

  55. <SystemLocale>zh-CN</SystemLocale>

  56. <UILanguage>zh-CN</UILanguage>

  57. <UserLocale>zh-CN</UserLocale>

  58. <InputLocale>0804:00000804</InputLocale>

  59. </component>

  60. </settings>


  61. -<settings pass="windowsPE">


  62. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-International-Core-WinPE">


  63. -<SetupUILanguage>

  64. <UILanguage>en-US</UILanguage>

  65. </SetupUILanguage>

  66. <InputLocale>zh-CN</InputLocale>

  67. <LayeredDriver>1</LayeredDriver>

  68. <SystemLocale>zh-CN</SystemLocale>

  69. <UILanguage>zh-CN</UILanguage>

  70. <UILanguageFallback>zh-CN</UILanguageFallback>

  71. <UserLocale>zh-CN</UserLocale>

  72. </component>


  73. -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Setup">


  74. -<DiskConfiguration>


  75. -<Disk wcm:action="add">


  76. -<CreatePartitions>


  77. -<CreatePartition wcm:action="add">

  78. <Order>1</Order>

  79. <Size>102400</Size>

  80. <Type>Primary</Type>

  81. </CreatePartition>


  82. -<CreatePartition wcm:action="add">

  83. <Order>2</Order>

  84. <Type>Extended</Type>

  85. <Extend>true</Extend>

  86. </CreatePartition>


  87. -<CreatePartition wcm:action="add">

  88. <Order>3</Order>

  89. <Size>15360</Size>

  90. <Type>Logical</Type>

  91. </CreatePartition>

  92. </CreatePartitions>


  93. -<ModifyPartitions>


  94. -<ModifyPartition wcm:action="add">

  95. <Active>true</Active>

  96. <Format>NTFS</Format>

  97. <Letter>C</Letter>

  98. <Order>1</Order>

  99. <PartitionID>1</PartitionID>

  100. </ModifyPartition>


  101. -<ModifyPartition wcm:action="add">

  102. <Extend>true</Extend>

  103. <Format>NTFS</Format>

  104. <Order>2</Order>

  105. <PartitionID>2</PartitionID>

  106. </ModifyPartition>

  107. </ModifyPartitions>

  108. <DiskID>0</DiskID>

  109. <WillWipeDisk>true</WillWipeDisk>

  110. </Disk>

  111. <WillShowUI>OnError</WillShowUI>

  112. <DisableEncryptedDiskProvisioning>true</DisableEncryptedDiskProvisioning>

  113. </DiskConfiguration>


  114. -<ImageInstall>


  115. -<DataImage wcm:action="add">


  116. -<InstallTo>

  117. <DiskID>0</DiskID>

  118. <PartitionID>2</PartitionID>

  119. </InstallTo>


  120. -<InstallFrom>


  121. -<MetaData wcm:action="add">

  122. <Value>1</Value>

  123. <Key>/image/index</Key>

  124. </MetaData>

  125. </InstallFrom>

  126. <Order>3</Order>

  127. </DataImage>

  128. </ImageInstall>


  129. -<UserData>

  130. <AcceptEula>true</AcceptEula>

  131. </UserData>


  132. -<WindowsDeploymentServices>


  133. -<Login>


  134. -<Credentials>

  135. <Domain>xxx</Domain>

  136. <Password>xxx.com</Password>

  137. <Username>Administrator</Username>

  138. </Credentials>

  139. </Login>


  140. -<ImageSelection>


  141. -<InstallImage>

  142. <ImageGroup>ImageGroup1</ImageGroup>

  143. <Filename>install.wim</Filename>

  144. <ImageName>2020-07-22</ImageName>

  145. </InstallImage>


  146. -<InstallTo>

  147. <DiskID>0</DiskID>

  148. <PartitionID>2</PartitionID>

  149. </InstallTo>

  150. </ImageSelection>

  151. </WindowsDeploymentServices>

  152. </component>

  153. </settings>

  154. <cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:d:/install.wim#2020-07-22"/>

  155. </unattend>
复制代码


您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

asd347128

48

活跃

0

技术

0

互助
签到任务
最火的业界新闻
  • [技巧]如何下载和安装Windows 10 October 2
  • Windows 10 2020年10月更新ISO完整版下载
  • 微软发布首个Linux版Edge浏览器的Insider构
  • 新专利显示True Tone for MacBook Pro 键盘
  • Intel的90亿美元交易让韩国主导世界NAND闪
  • 联想发布小新Pro/Air 2021笔记本:11代酷睿
  • 华为Mate 40系列详细配置曝光:全系支持90H
  • 罗永浩称最讨厌当众演讲:宁可少活5年 首次
  • 绿联推出65W氮化镓充电器 具备4个USB-C PD
  • iPhone12中国预订量3天超15万部 黄牛称Pro
炫酷的硬件Show
  • 振华SUPER FLOWER 铜皇450W 铜牌电源
  • 比小更小,Mini-STX装机
  • 华擎X99E-ITX + 银欣ML06 装机记
  • 最强双路泰坦硬管水冷 制作流程
  • 银欣FT02,双路E5工作站
  • 迟到的定制机箱小钢炮清理灰尘
  • 乔思伯UMX1 Plus,小巧的家用综合主机
  • 分体水冷第二弹-Inwin 805 infinity
  • 第一次DIY硬管水冷~~
  • 樱桃MX6.0 青轴 机械键盘 开箱
有趣的美图分享
  • 时代不同了
  • 认真学习
  • 丹麦的乌托邦式花园小镇
  • 狗哥哥和猫弟弟
  • 营养均衡很重要
  • 现在的孩子应该理解不了这种乐趣
  • 把你们的元气借给我
  • 呵,男人
  • 快捷,简单
  • 一胖毁所有!
关注官方微信
快速回复 返回顶部 返回列表