新增 Telegram 首次登入自動安裝與 Ventoy menu_tip 提示;ProductKey 改用 Win11/10 Pro GVLK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,9 @@ Windows Setup 在不同階段套用不同 `<settings pass="...">`:
|
||||
- `FirstLogonCommands` — 按 `Order` 依序執行:
|
||||
1. `powershell.exe -ExecutionPolicy Bypass -File C:\Scripts\Setup.ps1`
|
||||
2. `cmd.exe /c net accounts /maxpwage:unlimited`(密碼永不過期)
|
||||
3. `shutdown /r /t 5`(重開機)
|
||||
3. `Rename-Computer` 改主機名成 `PC-XXXXX`(重開後生效)
|
||||
4. 下載 `https://telegram.org/dl/desktop/win64` 並以 `/VERYSILENT /SUPPRESSMSGBOXES /NORESTART` 靜默安裝 Telegram Desktop(per-user,裝到 Admin 帳號下)
|
||||
5. `shutdown /r /t 5`(重開機)
|
||||
|
||||
---
|
||||
|
||||
@@ -66,9 +68,9 @@ Windows Setup 在不同階段套用不同 `<settings pass="...">`:
|
||||
|---|---|
|
||||
| `processorArchitecture` | x64 用 `amd64`、ARM64 用 `arm64` |
|
||||
| `publicKeyToken` | 微軟元件簽章,固定 `31bf3856ad364e35` |
|
||||
| `ProductKey` | 零售/OEM 填正式序號;KMS/大量授權可用 Generic Volume License Key,或留空 |
|
||||
| `ProductKey` | 目前填的是 **Win11/10 專業版 GVLK**(`W269N-WFGWX-YVC9B-4J6C9-T83GX`,[微軟文件](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys)),用來選版本+略過序號畫面。GVLK 只在 KMS 主機環境下才會真正啟用,獨立機器會進 30 天寬限期。其他版本/零售序號直接換這串即可 |
|
||||
| `PlainText` | `true` 用明碼、`false` 用 Base64(SIM 會自動產生) |
|
||||
| `%RAND:5%` | 內建變數,產生 5 位隨機數字避免主機名衝突 |
|
||||
| `ComputerName` | 只接受字面名稱、`*`(自動產生如 `DESKTOP-ABC123D`)或空值。**不支援 `%RAND:N%`**——那是 MDT/SCCM task-sequence 變數,直接放進 `unattend.xml` 會被當字面字串送進 NetBIOS 驗證而失敗。本檔的做法是 `<ComputerName>*</ComputerName>` 加 `FirstLogonCommands` 裡的 `Rename-Computer` 改成 `PC-XXXXX`,重開後生效 |
|
||||
| `WillShowUI` | `OnError` / `Always` / `Never` |
|
||||
| `FirstLogonCommands` | 需搭配 `AutoLogon` 才會觸發;按 `Order` 同步執行 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user