修正兩處實機部署失敗的 XML bug;新增 DEPLOY.md 紀錄本機 USB 部署
- 根元素加上 xmlns:wcm / xmlns:xsi 命名空間宣告,否則全檔 wcm:action 無法解析(第 27 行第 9 欄即炸) - ComputerName 改用 *,隨機後綴改由 FirstLogonCommands 的 Rename-Computer 產生;原本 PC-%RAND:5% 並非 Windows Setup 內建巨集,字面送入導致 specialize 階段 Shell-Setup 失敗 - 同步更正 CLAUDE.md / SUMMARY.md 對 %RAND:5% 的錯誤說明 - 新增 DEPLOY.md:/Volumes/Ventoy 的實際檔案佈局與重建步驟 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
11
unattend.xml
11
unattend.xml
@@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||
<unattend xmlns="urn:schemas-microsoft-com:unattend"
|
||||
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<!-- Pass 1: windowsPE — 安裝前的基本設定 -->
|
||||
<settings pass="windowsPE">
|
||||
@@ -80,7 +82,7 @@
|
||||
publicKeyToken="31bf3856ad364e35"
|
||||
language="neutral"
|
||||
versionScope="nonSxS">
|
||||
<ComputerName>PC-%RAND:5%</ComputerName>
|
||||
<ComputerName>*</ComputerName>
|
||||
<TimeZone>Taipei Standard Time</TimeZone>
|
||||
<RegisteredOwner>IT Department</RegisteredOwner>
|
||||
<RegisteredOrganization>YourCompany</RegisteredOrganization>
|
||||
@@ -158,6 +160,11 @@
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>3</Order>
|
||||
<CommandLine>powershell.exe -NoProfile -Command "Rename-Computer -NewName ('PC-' + (Get-Random -Minimum 10000 -Maximum 100000)) -Force"</CommandLine>
|
||||
<Description>主機名改成 PC-XXXXX(重開後生效)</Description>
|
||||
</SynchronousCommand>
|
||||
<SynchronousCommand wcm:action="add">
|
||||
<Order>4</Order>
|
||||
<CommandLine>shutdown /r /t 5</CommandLine>
|
||||
<Description>完成後重開機</Description>
|
||||
</SynchronousCommand>
|
||||
|
||||
Reference in New Issue
Block a user