Unattended Windows installations bring peace and quiet
อัปเดต: 14 พฤศจิกายน 2025
ตามเวลา Microsoft Windows กลายเป็น annoying มากขึ้น less fun Windows 11 เป็น epitome ของ sad trend นี้ exhibiting tons ของ smartphone-like "experiences" ที่ทำลาย idea ของ desktop โดยสมบูรณ์ คุณสามารถ work around nonsense features หลายอย่าง แตต้องใช้เวลาและความอดทน
ในสองสามปีผ่านมา ผมเขียน tutorials เยอะมายเกี่ยวกับการ tame unruly beast นี้ ทำให้ Windows 11 น้อย stupid ทั้งหมด articles สำหรับ typical desktop use ด้วย interactive changes ผ่าน Settings, Control Panel, services และ registry บ้าง ตามที่พบ มี superior way คุณสามารถติดตั้ง Windows "enterprise style" ใน unattended mode ซึ่งให้ clean และ prune 90% ของ useless garbage โดยไม่มี interaction ใดๆ มาแสดงวิธีทำกัน

Basic explanation on unattended installations
Concept ไม่ใหม่หรือ Microsoft-specific ทุก OS มี method สำหรับ hands-free installations มีประโยชน์มากสำหรับ business environments, data centers และ large fleet of systems ที่ไม่สามารถมีคน click through endless menus 24/7 แทนคุณสร้าง recipe ของ setup instructions ใน format หนึ่ง (เช่น XML หรือ JSON) และ system installer parse recipe นี้ automatically instructions ครอบคลุม partitioning, user creation และอื่นๆ
Unattended method หมายความว่าคุณสามารถมี fully installed box โดยไม่มี manual work เลย ทำให้ process faster, consistent, less error-prone และสำคัญที่สุด ให้คุณ "powers" เพิ่มเติมที่ interactive installation wizards มักขาด เพราะพวกมัน geared toward "common" user กับ Windows 11 หมายความว่าคุณติดตั้งระบบและข้าม pseudo-modern BS ทั้งหมด เช่น online account, ads, location และ low-IQ questions อื่นๆ ที่ installer โยนมา Sounds like winning option มาสำรวจต่อ
Windows autounattend.xml
มี multiple ways config Windows ด้วย unattended installation method รวมถึง working from PE setup, ใช้ XML-based autounattend.xml file หรือ provisioning packages (ppkg) ผมโฟกัสที่กลาง เพราะ easiest to master
Basically คุณต้องสร้างไฟล์ autounattend.xml สร้าง manual หรือใช้ generator ช่วย format ให้สวย ไฟล์มี declarations บอก OS ว่า HOW to install itself ตัวอย่าง ภายในไฟล์อาจเห็น:
<OOBE>
<ProtectYourPC>3</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
</OOBE>
หรืออาจเป็น:
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>powershell.exe -WindowStyle Normal -NoProfile -Command "$xml = [xml]::new(); $xml.Load('C:\Windows\Panther\unattend.xml'); $sb = [scriptblock]::Create( $xml.unattend.Extensions.ExtractScript ); Invoke-Command -ScriptBlock $sb -ArgumentList $xml;"</Path>
</RunSynchronousCommand>
ทำ manual ทั้งหมดค่อนข้างยาก แตถ้ามี nice template คุณเริ่มได้เร็วและมีประสิทธิภาพ โชคดีมี true heroes อยู่
The Unattend Generator เป็นเว็บไซต์สวยที่ให้คุณสร้าง XML ของตัวเอง คุณตอบคำถามใน human format เช่น username, system name, apps ที่อยากหรือไม่ configure Wi-Fi และอื่นๆ จากคำถาม จาก online form นี้ site จะสร้าง autounattend.xml ให้ และ wrap ไฟล์เป็น ISO archive ให้ใช้กับ products อื่นได้
ถูกต้อง เมื่อไฟล์พร้อม แล้ว:
- Download autounattended.xml หากใช้กับ physical media (เช่น USB drive)
- Download unattended.iso หากใช้กับ virtualization products หรืออย่างน้อย test recipe ใน VM ก่อนไป physical installation
หากเลือก physical setup:
- Copy autounattended.xml ไป root ของ USB drive เช่น D:\
- คุณสามารถ unpack Windows 10/11 installation media (ด้วย DISM) เพิ่มไฟล์ และ repack ISO แต่ less trivial และ less recommended สำหรับ most users
Test, practice, make adjustments
OK ผมใช้ generator สำหรับ setup ผม base คำตอบใน form บน usability guide ของตัวเอง ผมอยาก Windows 11 ให้ online น้อยที่สุด คือ no "apps", no pointless services, no nonsense แค่ straightforward desktop use ผม download XML และ ISO ทั้งสอง ใช้ ISO สำหรับ initial test ใน VirtualBox site อธิบายวิธี mount image และใช้ร่วมกับ installation media จริง
To be more precise สำหรับ test ผมทำ:
- สร้าง XML และ ISO
- สร้าง Windows 11 VM ใหม่
- เพิ่ม Windows 11 24H2 installation media และ unattended.iso เป็น bootable media
- เริ่ม installation
Right away คุณเห็นความแตกต่าง fewer screens popping และที่ปรากฏดู "serious" มากขึ้น ผมเลือกระมัดระวัง ปล่อยบางคำตอบใน recipe ไว้ คือ manual partitioning และ user creation (แต่ local จริงๆ)

จากนั้นมี silly noise:

Magic happens ... oh oh
จากนั้นสร้าง local user ไม่มี stupid questions หลังนั้น Windows 11 update เองจาก 24H2 ไป 25H2 relatively quick affair ตาม findings ของ fresh install และ reset procedures สุดท้าย desktop โหลด
Results!
Solid ผมได้ custom wallpaper, right system theme, no pointless apps, no silly services (เช่น Defender) สำหรับ practical purposes ทั้งหมด 5 นาทีกับ XML generator ประหยัดประมาณ 2 ชั่วโมง pointless tweaking Not bad at all
แต่... ผมยังต้องไปทุก setting ทำให้ถูกต้อง Unattended installation จะจัดการ system cruft แตไม่ tweak user permissions ดังนั้นยังต้อง usability guide และ toggle off typing, inking, permissions และทั้งหมดนั้น

Settings app ใน Windows 11 25H2 ไม่มี window controls แล้ว เพราะคุณต้อง join the Borg resistance is futile และ desktop "resembles" phone 越多 越容易 big companies ควบคุม filthy unruly peasant คือ end user
บน apps front มี unneeded app หนึ่ง คือ Microsoft Edge Game Assist ต้องลบ manual ผมเก็บ Edge (generator mention potential problems) และ Calculator เพราะอาจต้องใช้ แต่ silly touch apps อื่นๆ หายไป

ผมติดตั้ง Firefox และอื่นๆ แต่ basically unattended setup ประหยัด 75% ของเวลาที่จะ waste undoing Windows 11 crap

และนี่เพื่อนๆ คือวิธีทำ
Conclusion
First attempt ของผมกับ autounattend.xml excellent แน่นอนอาจ aggressive มากกว่านี้ แต่ไม่ harm ทำ partitioning และ user setup manual เพื่อ safe side แต่สุดท้ายได้ local-only machine ไม่มี cloud crap, ไม่มี Defender, ไม่มี BitLocker, ไม่มี apps, ไม่มีอะไร Beautifully done ส่วนที่ดี setup fast, consistent และ clean คุณไม่ lose sweet sense of control
ผมยังคิดว่าไม่ควรใช้ Windows 11 ได้ Linux ซื้อ Mac ใช้ Windows 10 ถ้าชอบ ส่งเสียงดังชัดเจนว่าไม่ทน pointless anti-user tools และ software นั่นคือวิธีดีที่สุดให้ stupid trends ไม่คงอยู่ Microsoft ลอง tiles ใน Windows 8 ลองอีกครั้งกับ Windows 11 และ "online accounts" ขึ้นอยู่กับคุณจะเลือก computing future แบบไหน
Anyway unattended recipes เป็น superb method ทำ Windows installations ของคุณ docile, quiet และ obedient โดยไม่มี modern drama เหมือน old work setups และ XML means business literally และ figuratively หากมี skill และ patience ใช้ tooling คุณจะ benefit immensely Time, precision, control, privacy ทั้งหมดอยู่ที่นี่ หวังว่าคู่มือนี้ handy แม้ paradoxically ให้ reasons เพิ่มให้ใช้ OS ที่ควรไม่ใช้ แตถ้าต้องใช้ โปรด XML away!
Cheers.