Docsity

ottimizzare windows ltsc, Appunti di Informatica

Toggle sidebar
bg1
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.
1. Table of Contents
2. A note on Windows versions
3. Verify the image
4. Prepare and debloat the Windows image
1. Common questions and problems
2. Optimize-Offline
1. Preparation
2. Using the script
3. MSMG Toolkit
1. Preparation
2. Using the script
5. Create a bootable USB disk
6. Before installing Windows
7. Boot into USB
8. Install Windows
1. Out Of Box Experience
2. Common questions and problems
9. Post-install tweaking
1. Install drivers
2. Install and debloat graphics card drivers
3. Install a firewall
1. About Windows Firewall
4. Antivirus & Security
1. How to scan for viruses
2. User Account Control
10. Configure Windows
1. Services
1. Registry files for easy Services configuration
2. Task Scheduler
3. Group Policy
Guide to install and optimize Windows 10 LTSC
Table of Contents
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Anteprima parziale del testo

Scarica ottimizzare windows ltsc e più Appunti in PDF di Informatica solo su Docsity!

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.

  1. Table of Contents
  2. A note on Windows versions
  3. Verify the image
  4. Prepare and debloat the Windows image
  5. Common questions and problems
  6. Optimize-Offline
  7. Preparation
  8. Using the script
  9. MSMG Toolkit
  10. Preparation
  11. Using the script
  12. Create a bootable USB disk
  13. Before installing Windows
  14. Boot into USB
  15. Install Windows
  16. Out Of Box Experience
  17. Common questions and problems
  18. Post-install tweaking
  19. Install drivers
  20. Install and debloat graphics card drivers
  21. Install a firewall
  22. About Windows Firewall
  23. Antivirus & Security
  24. How to scan for viruses
  25. User Account Control
  26. Configure Windows
  27. Services
  28. Registry files for easy Services configuration
  29. Task Scheduler
  30. Group Policy

Guide to install and optimize Windows 10 LTSC

Table of Contents

  1. Update Windows
  2. Update manually
  3. Remove Edge
  4. Kill Windows Update
  5. Disable Windows Update services
  6. Disable Windows Update tasks
  7. Revoking Windows Update privileges Backup your important files (browser configs, photos, documents, passwords etc) in a safe place before installing a new Windows! You might still be wondering which version of Windows 10 LTSC you should install. The answer is always Windows 10 IoT Enterprise LTSC and the reason why is because LTSC IoT has longer servicing support, ending in 2032 versus 2027 for non-IoT LTSC. There are no other differences between the two versions, outside of the activation methods. Although the tweaks will work for other versions of Windows, they require more work and debloating. LTSC is the best base to start because it doesn't come with a lot of the annoying "features" and Microsoft integration of Windows 10 Home/Pro. I want to install X language instead of English. Always get the en-US image, we can install other language packs during optimization or after we're done installing the system. LTSC IoT only has an English ISO, non-IoT has other languages. Can LTSC IoT play vidya? Yes, it can. There are no compatibility differences between versions. Is LTSC slower than other versions of Windows? No, and not since version 20H2 (guessing you're talking about the Windows 10 thread scheduler and Ryzen CPUs?). Tip: Update your BIOS to the latest version your manufacturer provides so you can make full use of new Intel and AMD improvements. If you bought XMP RAM make sure the XMP profile is enabled in your BIOS to get the full benefits of your hardware. This step is one of the most important when we're installing critical software on our system, yet a lot of people skip this. Do not download weird Windows images off the internet, get your image straight from Microsoft! After acquiring your LTSC IoT ISO you need to compare the hashes. If you didn't download from Microsoft then go here and select your ISO version. Look at the SHA-256 and compare it to the hash of the ISO you downloaded. How to get hashes on Windows? It's very simple, there are a few methods: Open Powershell and type: get-filehash "C:\PATH\TO\MY-WINDOWS-IMAGE.iso" -Algorithm SHA Get a tiny program called HashCheck or OpenHashTab that nests itself inside the Properties menu of files, giving you an extra tab to easily calculate hashes. Programs like 7-Zip are also able to generate hashes.

A note on Windows versions

Verify the image

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

Preparation

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.

Using 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 folder , where you should get a screen like this to pick the version of LTSC to work on. Pick 2 for LTSC IoT and press Enter, then type Y for both questions. Now we can start the optimization process, disabling and integrating the things we want by going through each subsequent menu in order. If you're not integrating anything like drivers or aren't interested in a section simply skip it and move on to the next but it's important to note that certain things like Language Packs should ALWAYS be integrated before anything else, follow the /!\ Warnings the script gives you.

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...

Boot into USB

Install Windows

Out Of Box Experience

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

Post-install tweaking

Install drivers

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

How to scan for viruses

User Account Control

Configure Windows

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 :

Registry files for easy Services configuration