

















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


















A more in-depth guide for /g/ to install, debloat and optimize Windows 10 LTSC for a minimal and responsive operating system with no bloat, no telemetry, no UWP app cancer. Our goal is to get a Windows 10 system that doesn't connect to remote IPs on its own and only has the useful minimum for a working system. We want it to be fast, responsive and unobtrusive. We will begin by optimizing the Windows image and removing unnecessary components, then after installation we take a look at all the settings we can use to minimize the system's footprint. This guide is specifically aimed at Windows 10 LTSC. Note: Some of the optimizations here might not work for you or they might not be useful for the kind of usage you do with your computer. Simply take them as inspiration for your optimization and pick what's useful for your particular case. Read the /fwt/ paste for a more general overview of Windows. Download this guide as PDF. This guide loads screenshot images from a third-party site: Imgur.
You might have a restrictive Powershell execution policy. Check the Microsoft documentation. First, make sure you launched Powershell as Administrator. Then type Get-ExecutionPolicy -List to get a list of your execution policies. If it says Undefined for all entries it just means the policy is Restricted , you cannot execute scripts. You can set the execution policy for your machine permanently with: Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine To revert back after you're done (highly recommended) just type: Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope LocalMachine Optimize-Offline is a powerful tool but requires a bit of reading to understand what it's capable of doing to a Windows image. Please take a look at the Optimize-Offline readme, it's worth reading through everything as you go along. This particular repository of Optimize-Offline is a fork of the original Optimize-Offline maintained by users of the MDL forums after the original creator stopped updating, it has additional features and tweaks to disable/enable a lot of Windows components and keeps getting new ones frequently, as well as support for Windows 11. Download Optimize-Offline from the releases page (Source Code), and unzip the files somewhere safe and with a short path like D:\Optimize. Notice the folders Content > Additional and open each one to take a look at what's inside, refer to the README.md every time for instructions. If for instance you have registry tweaks you apply after every install, you can drop the .reg files in the RegistryTemplates folder to have them be applied automatically. Optimize-Offline
To use the script we first have to configure the Configuration.json file. The documentation on how to configure this file and what each entry does can be found in Module Help Topics and Optimization Details but also the readme. I created a screenshot how I configure mine along with some notes, pay attention to not change the structure of the file (e.g. missing a comma) or you'll get errors: Please inform yourself before you integrate the Windows Recovery Tools (DaRT) as this can be a security issue if someone other than you has access to your computer. Read more. If you enabled SelectiveRegistryTweaks in the config file, make sure you read the Readme section concerning those settings. Now that we've configured Configuration.json and added all the additional content to their respective folders we can proceed to do the actual optimization. Open Powershell as Administrator and navigate to the Optimize-Offline folder. To call the script type: .\Start-Optimize.ps Help! I get an error when I try to launch the script.
Which System Apps can I safely disable? Tip: Read about System Apps in the Github readme. These apps can be disabled without causing problems: AsyncTextService (messaging service for People and Maps) BioEnrollment (biometrics) CallingShellApp (mobile phone link) MicrosoftECApp (eye control for Mixed Reality) MicrosoftEdge (classic Edge browser) MicrosoftEdgeDevToolsClient SecHealthUI (Windows Defender) FileExplorer (UWP File Explorer) FilePicker (UWP File Picker) NarratorQuickStart ParentalControls XGpuEjectDialog (safe removal of external GPUs) XboxGameCallableUI (Xbox gaming features) UndockedDevKit NcsiUwpApp (UWP Networking app)
Windows.CBSPreview (UWP app to scan barcodes) These apps are required for certain components to work: MicrosoftAccountsControl (required for Microsoft accounts and others) ContentDeliveryManager (required for Windows install afaik) LockApp (required for the Lock Screen) OOBE Network Captive Portal (required for Windows install) OOBE Network Connection Flow (required for Windows install) Search (breaks search feature in the Start Menu if removed) ShellExperienceHost (required for the Task Bar) StartMenuExperienceHost (required for the Start Menu) Windows.ClientCBS (required for a few things like Settings panel) ImmersiveControl Panel (required for the Settings panel) What you remove depends entirely on your goals, if you want a minimal installation then remove everything except the list above, if you want the Store keep AAD Broker Plugin, Accounts Control, if you use a printer keep the printer apps, if you want to use Xbox features the Xbox app etc. For Windows Capabilities I remove the following, we can always re-install them later: For Optional Features, I disable the following as I don't have a use for SMB and don't use a printer.
Note: Do yourself a favor if you don't want to burn your eyes right away and go into [7] Tools > [3] Options > [1] Set Toolkit Color Settings and set it to [1] (Black-White). Much better! First off we're going to extract our ISO by going to [1] Source > [3] Extract Source from DVD ISO Image so we can work on it. Simply type the name of the ISO image (without extension) like below and it will extract the contents of the ISO to the DVD folder.
After it's done extracting, we need to go back to [1] Source and then into [1] Select Source from
Go through every section and disable the things you don't want: After going through each section Go Back and select [2] Start Removing Windows Components for your changes to be applied. Which components can I safely remove? You can remove pretty much everything except : Content Delivery Manager (required for Windows install) Lock App (breaks lock screen) OOBE Network Captive Portal (required for Windows install) OOBE Network Connection Flow (required for Windows install) The tool will (sometimes) indicate if a component is required for something else to work. I don't understand what some of these components are for. Don't remove them! The most important components are in [7] System Apps , removing something here can prevent you from being able to install Windows or gets you a subtly broken system later on. I created an album here with all my settings if you want to copy them. After you're done selecting components, go back one step and choose [2] Start Removing Windows Components for the tool to apply your choices. Once it's done go back to the initial menu and select [4] Customize then [8] Apply Tweaks. This menu allows you to apply registry tweaks to the system, I highlighted the ones I typically pick:
Next, go back to the initial menu again and navigate to [5] Apply then [1] Clean Source Images to do some final image cleaning. Once that's done, go back one step and select [2] Apply And Save Changes to Source Images. Select [Y]es for all the optimizations it asks you. Finally, we can create the ISO image by going to [6] Target and selecting [1] Make a DVD ISO Image. It will ask you for a volume label and file name, I named mine MSMGCustomW10 for both but name them whatever you want.
After rebooting simply press F10, F12, Delete, Esc or the equivalent for your BIOS to boot into the Ventoy USB key. I can't boot into my USB. Disable Secure Boot in your BIOS settings. Check if you're booting in UEFI mode, alternatively that CSM support is disabled or configured for UEFI. The installation process should be pretty straight-forward. Please double, triple check where you are installing Windows and which partitions you are deleting if any. At this point of the install, I recommend you disconnect your device from the Internet so Windows won't be able to connect just yet. Pick Custom Install and delete any partitions on the disk, let Windows fill the whole disk. We can deal with shrinking or making new partitions later as Windows likes to install a 500 MB recovery partition right after the Windows partition and this complicates disk management. After Windows installs, the system will boot into Out Of Box Experience (OOBE) where you get to select your language, keyboard, user name and privacy settings. When it asks you to connect to the Internet (if you're offline), pick Continue with limited setup at the bottom. When it asks you for a Microsoft account, pick Domain join instead or Use Local Account at the bottom. Disable everything when it asks you to "Choose your privacy settings". Proceed with the configuration, let it reboot and you should finally set foot in your shiny new Windows system. If you did everything correctly, this is how barebones it should look: Perfection, now on to configuring everything...
The initial setup is asking me for a product key. Choose "I don't have a product key", if you have a genuine key stored on your system it will activate Windows automatically. If not, then you'll have to use HWID activation with MAS once you login into Windows. Which operating system should I install? If you did things right in the guides before it wouldn't be asking that question, but always pick IoT Enterprise LTSC. The installation crashes during setup (OOBE). You removed essential Windows install components and the setup can't proceed. Start over. The installation crashes after setup (OOBE) and doesn't boot into Windows (Why did my PC restart?). Let it connect to the internet and try to repair itself, if it doesn't and gets stuck in a boot loop you likely removed some essential Windows component and will need to start over. Help! I'm getting an error that a media driver is missing during install and can't proceed. That usually means the ISO is bad, but sometimes the solution is to disconnect all drives except the one you want to install Windows on. Check your USB settings in the BIOS and try other USB ports. Everything below (and above, but mostly below) is done at your own risk! Before connecting to the Internet and launching Windows Update, we have a few tasks to do. Right after installing we should look for any missing drivers in our system. Point Windows to the backup folder of your drivers if you have any. Common questions and problems
If you find the native Windows Firewall too complicated to configure then I can recommend Windows Firewall Control, it's what I personally use (not a shill, it's been bought out by Malwarebytes recently but it's still excellent software!). This program has the ability to protect Windows Firewall from external tampering and only firewall rules made through the program are allowed to be set. If you use use this, don't use Simplewall or TinyWall at the same time of course. I don't recommend you use an active antivirus (including Windows Defender) unless you're permanently downloading and using files from dodgy places. They can slow down your computer and introduce stutters and latency when you're doing CPU/GPU intensive tasks. Anti-viruses continually run in the background and scan your every move, most commercial ones also like to phone home frequently as well. If you suspect something is wrong, Windows has a native and simple virus scanner for most common infections called Windows Malicious Software Removal Tool (MRT) that gets updated every once in a while through Windows Update. You can launch it by simply searching for MRT from the Start menu. Use an online scan service like VirusTotal before you open a suspicious file or archive. Keep a portable instance of ClamAV for whenever you need it. Keep this enabled at the Default setting, it's good to have and keeps you alert even if it can be annoying. This is where we can reduce the footprint and resource usage of our system quite a bit. Check the official Microsoft documentation on disabling services if you want a more safe guide. This part is a lot more experimental and highly dependent on the usage you make of your system. Disabling the wrong services for things you need WILL lead to breakage! The simplest way to disable services is through services.msc tool. Go into Start Menu and search for the "Services" App. Antivirus & Security
Services
Expand the Name column and then order everything by Status "Running", you'll see some 80 or more services running. We're going to reduce this to less than 50 services (ymmv). Certain services can only be disabled via the registry due to permissions restrictions. In the Registry ( regedit ), navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and look for the Start DWORD entry. From there, you can change their startup configuration with: 1 = System (drivers) 2 = Automatic 3 = Manual 4 = Disabled You can go through the list and disable stuff manually... but instead of me posting a very long list of services for you to disable, I'm going to give you .reg Registry files you can apply that will modify the Startup Configuration of your services automatically. Feel free to open the files in a text editor first and audit for any malicious text , you'll see that the files only touch entries in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services" for the key "Start" as is expected. The registry files are best applied in Safe Mode. Download from Github as .reg and double-click to apply the config. Reboot after. Default Windows 10 LTSC Configuration :