WindowsAutounattendSetupScript
The WindowsAutounattendSetupScript is a PowerShell script that helps you create a special configuration file called autounattend.xml. This file is used during the installation of Windows to set up your operating system automatically without needing to manually answer questions.
Install / Use
/learn @Merlin-Clos/WindowsAutounattendSetupScriptREADME
WindowsAutounattendSetupScript
Description 📝
Welcome to the WindowsAutounattendSetupScript! 🎉 This PowerShell script is your trusty sidekick for creating a configuration file called autounattend.xml. This file lets you install Windows without having to answer annoying questions - because it's long, it's boring, and because time is money.
Once the script runs, it adds the autounattend.xml file to the root of your bootable device. This file contains all the necessary settings for the Windows ISO, speeding up the formatting process. All you need to do is boot from your USB drive, and you'll land directly on your new Windows desktop, ready to go!
Before using the script, choose the best ISO 🛠️
For the best experience, pair this script with the latest Windows ISO that includes all the recent updates. This will save you from the hassle of installing tons of updates via Windows Update right after formatting and reaching the new Windows setup.
Check out massgrave.dev to find the latest ISOs. Look for files named like fr-fr_windows_11_consumer_editions_version_23h2_updated_oct_2024_x64_dvd_4728d672.iso. The term "updated oct" indicates that the ISO includes Windows updates up to October.
By using these updated ISO, you won't have to wait super long for Windows Update updates directly after formatting, (I know it's annoying and not logical so I'll drop it here). Because as always, time is money.
Features 🌟
With this script, you can choose:
- Account name: Set your own personalized username for your new Windows installation.
- Password: Decide whether you want to secure your account with a password.
- Display language: Select your preferred display language, which will also match your keyboard layout.
- Region: Select your region. We advise you to set “Universal English” to limit the number of bloatware.
Privacy 🚫📊
By default, the script answers “no” to all Microsoft's privacy questions about data collection and telemetry. Because really, who wants to give Microsoft info, and who's sd to choose “yes” and give EVEN more personal information?
Requirements 📋
- The script removes annoying requirements for Windows 11 installation, such as :
- TPM 2.0
- Secure boot
- Processor generation checks
- No need to log in to Microsoft account
- This script bypasses the OOBE (Out-Of-Box Experience), allowing you to install Windows without needing an Internet connection
How to use it ⚙️
- Download or clone this repository.
- Execute the script: Run the script by clicking "Run with PowerShell" (preferably as administrator, even if the script is supposed to run as a script if you haven't done so). If the "Run with PowerShell" button is not available, you can set
powershell.exeas the default application for.ps1scripts. See this guide for instructions. - Follow the prompts: Answer the interactive questions to configure your installation parameters.
Troubleshooting 🔧
If the script doesn't run, check that you've enabled script execution. To do this, download and run the following script, and choose 1 (Thanks Fr33thy ❤️):
Acknowledgements 🙏
This project was inspired by :
Future Plans 🚀
The goal is to make the script even more customizable for everyone. I aim to eliminate as many problems as possible by using try-catch blocks (because surely there must be some) and optimize the code to be cleaner and more concise.
Related Skills
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
product-manager-skills
34PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
devplan-mcp-server
3MCP server for generating development plans, project roadmaps, and task breakdowns for Claude Code. Turn project ideas into paint-by-numbers implementation plans.
