Giter Club home page Giter Club logo

unattendedwinstall's Introduction

Memory’s Tech Tips’ Unattended Windows Installation

Overview

Microsoft allows you to add Answer Files (or Unattend files) to Windows ISO files, which can be used to modify Windows settings in the Windows Image (ISO) during the Windows Setup process.

If you’ve ever used Rufus to create Windows installation media, and you saw options like “Remove Windows 11 Hardware Requirements” and “Disable Privacy Questions,” they achieve that by including an Answer file in the installation media.

More info on Answer files can be found here: Microsoft Docs on Answer Files

I have created an answer file that I use to automate and streamline my Windows installs, and that’s what I’m sharing here with you. The answer file works on both Windows 10 and Windows 11, and I’ve tested it on the Pro version of Windows 10 22H2 and Windows 11 23H2 without any issues. I'm guessing it will also work on the Home versions of Windows, but you really should upgrade to Pro.

My motivation for this project is to get an “LTSC-like” or even better experience on the Pro and Home versions of Windows 10 and 11 without having to worry about getting an LTSC License.

The answer file also automates many parts of the Windows setup and saves me a ton of time because I don't have to run a bunch of programs and scripts every time I do a fresh install of Windows, it's already debloated and customized with my preferred settings.

Why should I use an answer file?

In my opinion, the best thing about an answer file is that it’s very safe.

  1. You can see every single change it will make to the Windows Image by inspecting the answer file.
  2. You insert it on the Official Windows 10 or 11 ISO directly from Microsoft, no need to download ISO files from Unofficial sources.
  3. It's not dependent on any third party tools and is an Official Microsoft Feature used to make Mass Windows Deployments easier.

What does Memory's UnattendedWinstall answer file do?

I've taken the time to add descriptions to almost all of the tweaks in the autounattended.xml answer file, and you can inspect it right here on GitHub.

Alternatively, you can download the file and use any one of the following programs to open it, inspect it and make changes to it if needed.

But in short it does the following

  • Bypasses Windows 11 System Requirements:

    • Adds registry entries to bypass TPM, Secure Boot, Storage, CPU, RAM, and Disk checks.
  • Debloats Windows:

    • Removes preinstalled bloatware apps using PowerShell scripts.
    • Removes legacy apps using PowerShell scripts.
  • Registry Tweaks:

    • Disables Microsoft Account creation.
    • Disables User Account Control (UAC).
    • Disables lock screen and Windows Spotlight.
    • Customizes Start Menu and Taskbar settings.
    • Disables various Windows features like Cortana, Telemetry, Hibernation, and Location Tracking.
    • Configures Windows Update to only install security updates and delay other updates for 2 years.
    • Disables Windows Error Reporting, Delivery Optimization, and Remote Assistance.
    • Sets various performance and privacy-related registry keys.
  • Runs Custom Scripts:

    • Executes PowerShell and batch scripts to apply additional tweaks and remove specific applications like Microsoft Edge, OneDrive, and Teams.
    • Loads and unloads the Default User registry hive to apply settings for new users.
  • Service Configurations:

    • Sets numerous Windows services to manual or disabled to optimize performance.
  • Power Plan:

    • Enables and sets the Ultimate Performance power plan as active.
  • Miscellaneous:

    • Creates a desktop shortcut for Chris Titus Windows Utility.
    • Disables IPv6 and Teredo.
    • Disables various scheduled tasks related to telemetry and diagnostics.
    • Enables Dark Mode by default.
    • Aligns the Start Button in Windows 11 to the left by default.

In addition to the tweaks I added to the answer file, it also contains elements and scripts from the following sources:

It would be impossible for me to create a single answer file that will please everyone, so instead I'm supplying you with one that basically removes everything (except Windows Security) and is "over-tweaked" if you will, so you can just edit the file and remove the tweaks you don't want.

Additionally, you can also add more tweaks or customizations if you have the know-how, but please note that I will not provide any form of support for any changes you make to the file.

Note

Due to the removal of Microsoft Edge, I also include a Powershell Script on the Desktop called "LAUNCH-CTT-WINUTIL.ps1"

  • Make sure you are connected to the internet, then right click on this file and select Run with Powershell.
  • It will launch the Chris Titus Tech Windows Utility and you can use that to install your browser of choice (even Edge) and any other software for that matter.

Usage Instructions

In short, you need to include the autounattended.xml answer file on your Windows Installation Media so it can be read and executed during the Windows Setup. Here are a few ways to do it:

If these instructions are unclear, maybe this video will help.

Method 1: Create a Bootable Windows Installation Media

  1. Download the autounattended.xml file and save it on your computer.
  2. Create a Windows 10 or 11 Bootable Installation USB drive with the Media Creation Tool or Rufus, for example. (When using Rufus, don’t select any of the checkboxes in “Customize Your Windows Experience” as it creates another answer file, we don't want that.)
  3. Copy the autounattended.xml file you downloaded in Step 1 to the root of the Bootable Windows Installation USB you created in Step 2.
  4. Boot from the Windows Installation USB, do a clean install of Windows as normal, and the scripts will run automatically.

Method 2: Create a Custom ISO File

  1. Download the autounattended.xml file and save it on your computer.
  2. Download the Windows 10 or Windows 11 ISO file depending on the version you want.
  3. Download and Install AnyBurn: AnyBurn
    • In AnyBurn, select the “Edit Image File” option.
    • Navigate to and select the Official Windows ISO file you downloaded in Step 2.
    • Click on “Add” and select the autounattended.xml file you downloaded in Step 1 or just click and drag the autounattended.xml into the AnyBurn window.
    • Click on “Next,” then on “Create Now.” You should be prompted to overwrite the ISO file, click on “Yes.”
    • Once the process is complete, close AnyBurn.
  4. Use this ISO file to Install Windows on a Virtual Machine OR use a program like Rufus or Ventoy to create a bootable USB flash drive with the edited Windows ISO file. (When using Rufus, don’t select any of the checkboxes in “Customize Your Windows Experience” as it creates another answer file, we don't want that.)
  5. Boot from the Windows Installation USB, do a clean install of Windows as normal, and the scripts will run automatically.

Conclusion

I hope this Unattended Windows Answer file helps streamline the Windows installation process as much as it has for me. Feel free to leave Your feedback and suggestions as they are always welcome! Also, if you find these scripts useful, consider giving this repository a star ⭐ on GitHub.

Happy installing!

unattendedwinstall's People

Contributors

memstechtips avatar devckvargas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.