Debloat ur windows 11 using autounattended.xml
Hello everyone
what is windows autounattended?
Its essentially a script that runs at the beginning of the installation thats mostly used by enteprises to copy and paste repetitive settings across different installations. What people don't know is that it also includes options to essentially customize windows how you want and of course as you guessed this includes removing all of the microslop crap.
Requirements
Only requirement is that it has to be a fresh installation. If you have windows already installed then this won't work as the script can only run at the beginning of the installation.
How do I do it?
Here are the steps that I did to make a windows iso installation that might as well be the cleanest installation thats ever lived.
- Open this website on ur laptop, pc, phone whatever as long as it clicks then we good.
- There are a lot of config options so I suggest you go through each one of them to understand what they do and if you need them. If you are going to get someone else's autounattended.xml file then thoroughly inspect the file to make sure there isn't any malware or bad stuff embedded in it. Here is mine. On the top left side press on browse, select the file and press on import to see all the options. Again as I said go through the whole thing to see what options I choose since there might be stuff that you need or not need.
- Once you have made your choices, scroll down and press on "download .xml file"
- Install Anyburn. We will need this to add the .xml file to the windows iso installation.
- Open Anyburn -> right column towards the middle press on "edit image file" and select the location of the windows iso that you have
- towards top row of the anyburn window press on "Add" -> on right of "Look in" press on the white box to select the drive/folder. Since you just downloaded it and i'm assuming that you haven't moved the .xml from the download folder, press on the "Downloads" and then select the autounattended.xml. If you have moved the .xml file then navigate to the folder and select it.
- Press add and then towards the bottom press on next -> create now and then when it asks you that it will overwrite it press yes. It will start writing the iso with the new file. Just wait till it finishes
- Move the iso file to the usb drive that you are using to install windows in
From here its just like installing windows. A bunch of powershell windows will open when installign windows, do not close them as its part of the script.
What now?
As this is a complete fresh install, all the drivers are missing so on that usb stick download the wifi/ethernet driver so you can connect to the internet and install the rest of the drivers. Well besides that, congrats u got ur self a clean windows installation without having to install some dodgy script off github.
If I do get something wrong then tell me. I will update the post to correct the mistake.