Windows 10 Initial Setup Script is a PowerShell script that you may run on Windows 10 devices to make all kinds of post-setup changes to the operating system.
While it is designed for post-setup operation, it can also be useful after bigger operating system updates that sometimes make changes to the configuration.
The script itself is not designed to be run right away. The developer recommends that users and administrators go through it to enable or disable modifications that it makes.
Since it runs automatically when executed, an option to deal with this while the script is executed is not available.
The first thing that you should do after downloading the latest release version of the script is to open it in a plain text editor to go through it once and adjust what it does based on your requirements.
This may sound complicated, but it is not actually. Basically, all you need to do is go through the first lines of the script as it lists all the tweaks there. A tweak with # in front is a comment, and it won't be executed.
So, place the # symbol in front of any tweak that you don't want executed, and save the script afterwards.
The script divides the tweaks and modifications into groups. There is a privacy settings group, one for service tweaks, and another for user interface tweaks for instance.
The main issue that you may run into when you edit the script is that it is sometimes not clear what a tweak does. While it is easy to understand what "DisableAdvertisingID" or "DisableRemoteAssistance" do, it may not be clear directly what "DisableSMB1" or "UninstallMsftBloat" do.
The script needs to be run with elevated privileges. It will apply all tweaks that are not blocked from execution. I suggest you create a backup of the system before you run the script. This may not be required if you run it right after setup, as you can simply install the operating system anew in this case.
Windows 10 Initial Setup Script comes with options to restore functionality to tweaks that have been applied previously. The reverse of each tweak is listed next to it in the interface. Simply remove the # in front of it and add the # symbol to the "disabling" tweak to restore the functionality.
You may also run the script using custom presets. This allows you to apply specific tweaks instead of all of them that are enabled currently in the script. A basic example is powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 EnableFirewall EnableDefender which would only enable Firewall and Defender again. The preset names are all listed at the top of the script when you open it.
The script is compatible with Windows 10 and Windows Server 2016.
Win10 Initial Tweak Setup Script is a handy script to make changes quickly to Windows 10 and Windows Server 2016 devices. It is highly flexible when it comes to the tweaks, thanks to the support for custom presets, and supports a wide range of modifications that you can apply to the operating system.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.