Files
Timmy a7975343c3 07:在桌面顯示「本機」與「控制台」(Default profile + 已載入 user hive)
寫到 HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons
底下的 NewStartPanel + ClassicStartMenu 兩個 key(NewStartPanel 是 Win11 用、
ClassicStartMenu 為相容性也寫一份)。值 0=顯示,1=隱藏。

腳本內保留 5 個內建 CLSID 對照表註解,未來要新增/移除其他圖示
(使用者檔案 / 網路 / 資源回收筒)只需動 $showOnDesktop 陣列。
2026-04-28 08:58:50 +08:00
..

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
steps/ — 拆解後的 post-install 步驟,每段一個 .bat 雙擊執行
==========================================================

用法
----
1. 把 USB 插上 Windows 機器
2. 用檔案總管打開 D:\ventoy\script\steps\D 換成 USB 在 Windows 看到的代號)
3. 雙擊任一個 NN-xxx.bat會自動 UAC 提權)
4. 黑色 console 視窗會即時顯示 START / DONE / ERR
5. 跑完按任意鍵關掉視窗

想一次跑完,雙擊 RUN-ALL.bat 即可。

順序建議
--------
Phase 1不需要網路本機設定
  01-firewall-ssh-22                  防火牆開 SSH 22
  02-rdp-enable-3389                  打開 RDP
  03-icmp-echo-allow                  允許 ping
  04-winrm-enable                     啟用 WinRM
  05-onedrive-remove                  移除 OneDrive
  06-cortana-websearch-off            關 Cortana / Web Search
  07-apply-ui-ime-default-profile     UI/IME 預設套到 Default profile
  08-hide-admin-account               把 Admin 從登入畫面藏掉
  09-pause-windows-update             暫停 WU避免下面動作搶頻寬

Phase 2需要網路下載安裝
  10-openssh-server-install           OpenSSH Server FoD
  11-kms-activate                     KMS 啟用
  12-winget-install-chrome            裝 Chrome
  13-remove-windows-ai                RemoveWindowsAI 線上腳本
  14-win11debloat                     Win11Debloat讀同目錄 win11debloat-config.json
  15-remove-uwp-apps                  批次移除 UWP
  16-install-telegram                 裝 Telegram

收尾
  17-resume-trigger-wu                解除 WU 暫停 + 觸發掃描

Log
---
所有 step.ps1 共用同一個 log
  C:\Windows\Temp\setup.log

每段會印 [時間] === 段名 START === / DONE === / ERR ===

檔案結構
--------
  _common.ps1                共用 helperLog / Section / Set-RegValue / Wait-Network
  _template.bat              .bat 樣板(不要動)
  NN-xxx.ps1                 各段邏輯
  NN-xxx.bat                 各段 .bat自動 UAC + 跑 .ps1
  win11debloat-config.json   14 段用的 JSON 設定
  RUN-ALL.bat                依序跑 01..17 全部