Lightweight Server Windows Optimizer is a pioneering configuration matrix designed to aggressively debloat Windows Server, transforming it into an ultra-lightweight backend tailored specifically for Linux environments to create a true "Linux Subsystem for Windows". By mercilessly stripping away telemetry, background services, Windows Defender, and unnecessary UI bloat, the script reduces the operating system's idle footprint to an astonishing 200-300 MB of RAM. Ultimately, it provides a seamless and highly efficient RDP/WinApps bridge, ensuring that your wife can smoothly run the latest Microsoft Word directly on her Linux desktop, or your boss can flawlessly present a PowerPoint, all without ever realizing a virtual machine is running under the hood.
The Ultimate Windows & Linux Bridge: If Bill Gates and Linus Torvalds can hang out together, so can Windows Server and Linux! (Image source & context: Windows Central)
- Get the OS: Download the official Windows Server 2022 Evaluation ISO and officially become a Microsoft "homelab developer" 😉.
- Run the Optimizer: Simply download the
LSW_Optimizer.cmdfile from this repository, place it on your VM's desktop, and double-click it.
Alternatively, open PowerShell as Administrator and paste this pro one-liner:
irm https://raw.githubusercontent.com/RatioFickle/LSW/main/LSW_Optimizer.cmd -OutFile LSW_Optimizer.cmd; .\LSW_Optimizer.cmd
⚠️ SECURITY WARNING & DISCLAIMER This script is a hardcore Proof-of-Concept (PoC) designed STRICTLY for isolated, local hypervisors running MS Office via RDP/WinApps. By default, it completely disables Windows Defender, Windows Update, NLA (Network Level Authentication), and core security services. DO NOT expose this VM to the internet. DO NOT use this as a daily driver for web browsing or general Windows applications. You have been warned.🛡️ Want to keep Defender? The script is modular! If you prefer to maintain standard security, just remember to tick the box / skip the Defender removal option during the setup process. You are completely in control of what gets debloated!
Here’s proof that extreme optimization makes sense. Native Microsoft Word 2024 (on Windows) running directly on the Ubuntu (Linux) desktop using WinApps, with minimal resource usage:
Why use this specific configuration? Standard Office installers choke your system with OneDrive, Teams, Skype, and heavy background sync services. The lsw_office_config.xml provided here is a highly optimized configuration file. It installs only the core applications (like Word and Excel), completely disables cloud-sync bloatware, and stops telemetry from running in the background. This step is absolutely crucial if you want to keep your VM's RAM footprint around ~300 MB.
Installation steps:
- Download the official Office Deployment Tool (ODT) directly from the Microsoft Download Center: 👉 Microsoft Download Center - Office Deployment Tool
- Run the downloaded file to extract
setup.exeinto an empty folder. - Download the custom
lsw_office_config.xmlfrom this repository and place it in the exact same folder as thesetup.exe. - Open the command prompt in that folder and run the lightweight deployment:
setup.exe /configure lsw_office_config.xml
This project focuses exclusively on the extreme optimization of a virtual environment. It relies on the official evaluation versions provided by Microsoft:
- Windows Server 2022 Evaluation gives you a fully legal 180 days to test the infrastructure (with the possibility of extending the 180-day period up to 6 times, giving you nearly 3 years of testing).
- Office Suite (Volume/LTSC) offers a standard, free Grace Period immediately after installation (x3).
How to test this environment long-term? The recommended engineering practice for test environments (Proof of Concept) is to create a so-called "Golden Snapshot" in your hypervisor (Proxmox/VirtualBox) immediately after finishing the installation and WinApps configuration. When the evaluation period ends, you simply restore the machine to this clean, initial state and continue testing. This is a standard and fully legal workflow in homelabs.
If, after successful testing, you decide to move this environment into daily "production" – simply enter your legal product key in the settings and forget about snapshots!
- MemReduct: This script utilizes the excellent MemReduct by henrypp for aggressive memory management.
If you are just starting your homelab journey and want to build this setup from scratch, here are the essential tools and official guides you will need:
-
Virtual Machine Managers (Hypervisors):
- Virtual Machine Manager (KVM/libvirt) - The native, lightning-fast hypervisor built right into the Linux kernel. Highly recommended as WinApps can automatically start/stop libvirt VMs!
- GNOME Boxes - The simplest, out-of-the-box VM manager often available by default on distros like Zorin OS or Ubuntu.
- Proxmox VE - The industry standard for dedicated, bare-metal homelab servers.
- Oracle VirtualBox - Very easy to use if you are coming from a Windows host background.
-
Linux Integration (Seamless Mode):
- WinApps Official Repository - Step-by-step instructions on how to integrate Windows apps directly into your Linux app menu.
-
RDP Clients (Remote Desktop):


