# How to Trim Windows 11 and Take Back Control: Build Your Own ISO with Tiny11 Builder

> AI Release · @ai_releaseorg · https://ai-release.org/guides/kak-obrezat-windows-11-tiny11-builder_en.html

## TL;DR

- **Time required:** 10–15 minutes of preparation and 10–40 minutes for the build itself (depends on your SSD and CPU).
- **Difficulty level:** Intermediate.
- **You will need:** an official Windows 11 ISO (x64), a Windows 10 2004+ or Windows 11 host with PowerShell 5.1 and administrator rights, 25–30 GB of free space on an NTFS drive, Tiny11 Builder (the `tiny11maker.ps1`/`tiny11Coremaker.ps1` scripts or the 0.2.0 app), and Rufus or Ventoy. Your own Windows license is required.

## What you get

- **`tiny11.iso`** — a custom Windows 11 installation image with no preinstalled software, telemetry, or TPM/CPU/Secure Boot checks. It installs on older hardware, and a local account can be created without an internet connection.
- **`Build-Tiny11.ps1`** — a ready-made wrapper script: it finds the mounted ISO on its own, checks free space, runs the build, and prints the SHA-256 of the result. One command instead of ten manual steps.
- **A table of modes and an "install / don't install" checklist** — so you don't unknowingly strip out WSL2, Docker, and Windows Update.

## Quick start

```powershell
Invoke-WebRequest https://github.com/ntdevlabs/tiny11builder/archive/refs/heads/winui-preview.zip -OutFile $env:TEMP\tiny11.zip
Expand-Archive $env:TEMP\tiny11.zip C:\ -Force
Rename-Item C:\tiny11builder-winui-preview C:\tiny11
cd C:\tiny11
powershell -ExecutionPolicy Bypass -File .\Build-Tiny11.ps1 -ScratchDrive C
```

Details and verification are in the steps below. Before running the build, mount the ISO by double-clicking it and save `Build-Tiny11.ps1` from Step 2 to `C:\tiny11`.

## Three modes: Tiny11, Core, Custom

| Parameter | Tiny11 (`tiny11maker.ps1`) | Tiny11 Core (`tiny11Coremaker.ps1`) | Custom (app) |
|---|---|---|---|
| What gets removed | Preinstalled software, Edge, OneDrive, telemetry, TPM/CPU/RAM requirements | Everything from Tiny11 + the WinSxS component store, WinRE; Defender and Windows Update are **disabled** | You pick the groups yourself: apps, capabilities, services, drivers, languages |
| Updates | Work | Stripped out, the system is "frozen" | Depends on the selected groups |
| WinRE / recovery | Kept | Removed | Your choice |
| ISO size | ~3.5–5.5 GB (out of 5.5–7 GB) | ~2–3 GB | Depends on selection |
| Disk space used | ~9–11 GB | ~3–4 GB | Depends on selection |
| Adding WSL2, Hyper-V, languages afterwards | Yes | **No** | Yes, if you don't strip servicing |
| Who it's for | Everyday use, an old laptop, development (Docker, WSL2) | One-off test VMs, test rigs | Those who know exactly what they're cutting |

**The main pitfall:** Core removes not only Windows Update but also the component servicing mechanism. After installing Core, `wsl --install` and enabling Hyper-V fail with `0x800f081f` — the component sources are physically absent. If you plan to use Docker, WSL2, or Visual Studio with extra components, go with **Tiny11 only**.

Important for Tiny11 as well: the script runs `ResetBase`, so already installed updates can no longer be uninstalled ("rolled back"), but the update service itself and adding components still work.

## How it works under the hood

The script doesn't "break" Windows and doesn't use any third-party utilities — only Microsoft tools. Everything it does comes down to DISM operations on a copy of the installation image:

1. Copies the contents of the mounted ISO to a working folder (scratch) so the original stays untouched.
2. Mounts `sources\install.wim`; if the ISO contains a compressed `install.esd`, it first converts it to WIM using the built-in `Export-WindowsImage`.
3. Removes Appx packages, capabilities, and CBS packages: Clipchamp, News, Weather, Xbox, GetHelp, Solitaire, Mail, Maps, Your Phone, Edge, OneDrive, and others.
4. Edits the offline registry: `BypassTPMCheck`, `BypassSecureBootCheck`, `BypassRAMCheck`, OOBE settings for a local account, disabling of suggested ads and telemetry.
5. Cleans the component store (`/StartComponentCleanup /ResetBase`) — that's why the image shrinks noticeably.
6. Exports the image with `Compress:recovery` and separately patches `boot.wim` so the installer also skips the hardware checks.
7. Builds the bootable ISO with `oscdimg` — the only external exe, from Windows ADK; it is downloaded from the Microsoft symbol server or taken from an installed ADK.

The output is a new `tiny11.iso` in the script's folder. The source ISO and your current Windows remain unchanged.

## Requirements and setup

![Illustration: Requirements and setup](https://ai-release.org/guides/img/kak-obrezat-windows-11-tiny11-builder-en-1.jpg)


- **ISO:** an official Windows 11 image from the Microsoft website (or Media Creation Tool saved to ISO). A variant with `install.esd` also works: the script converts it itself, but this adds 10–20 minutes and requires more space.
- **Host:** Windows 10 2004+ or Windows 11, PowerShell 5.1, administrator rights.
- **Space:** 25–30 GB free on an NTFS drive for temporary files (twice the ISO size plus headroom).
- **Path:** a working folder without Cyrillic characters or spaces — `C:\tiny11`. OneDrive, network drives, exFAT, and ReFS won't do: `oscdimg` and WIM mounting don't work there.
- **Network:** needed during the build — the script downloads `autounattend.xml` (compact installation and a local account), and, if ADK is missing, `oscdimg.exe`.
- **License:** your own activation key. Tiny11 does not activate Windows and does not bypass licensing.

## Step 1. Mount the ISO and verify the image

**What to do:** mount the ISO by double-clicking it (or right-click → "Mount") and make sure it contains the installation files. A virtual drive, for example `E:`, will appear in File Explorer.

**Why:** the script only works with a mounted medium. If you specify the wrong drive letter or run the build from a folder with an extracted ISO, it will stop at "Can't find Windows OS Installation files".

```powershell
#1) edition list and indexes inside the image
Get-WindowsImage -ImagePath E:\sources\install.wim | Select-Object ImageIndex, ImageName, ImageSize
```

For `install.esd`, use `Get-WindowsImage -ImagePath E:\sources\install.esd`.

**How to check:** the command prints a table of editions (Home, Pro, Education…) with indexes, and `Get-ChildItem E:\sources` shows `boot.wim` and `install.wim` (or `install.esd`). If the table is empty or the files are missing, the mounted image is not an installation image.

## Step 2. Build the image with a single command

![Illustration: Step 2. Build the image with a single command](https://ai-release.org/guides/img/kak-obrezat-windows-11-tiny11-builder-en-2.jpg)


**What to do:** save the wrapper below to `C:\tiny11\Build-Tiny11.ps1` and run it. The script does not change anything in the system: the execution policy is raised only for the current process, and after the build it prints the path, size, and SHA-256 of the finished ISO.

```powershell
<#
.SYNOPSIS
    Builds tiny11.iso with a single command: finds the mounted ISO,
    checks free space, runs tiny11maker.ps1 and computes SHA-256.
.EXAMPLE
    powershell -ExecutionPolicy Bypass -File .\Build-Tiny11.ps1 -ScratchDrive C
.EXAMPLE
    powershell -ExecutionPolicy Bypass -File .\Build-Tiny11.ps1 -IsoDrive E -ScratchDrive D -Core
#>
[CmdletBinding()]
param(
    [ValidatePattern('^[c-zC-Z]$')][string]$IsoDrive,
    [ValidatePattern('^[c-zC-Z]$')][string]$ScratchDrive = 'C',
    [string]$Repo = 'C:\tiny11',
    [switch]$Core
)

$ErrorActionPreference = 'Stop'
function Fail([string]$msg) { Write-Host "ERROR: $msg" -ForegroundColor Red; exit 1 }

#0. Administrator rights: DISM cannot mount an image without them
$id = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal $id
if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
    Fail 'run PowerShell as administrator.'
}

#1. Check the repository and clear the "downloaded from the internet" mark
$builder = Join-Path $Repo $(if ($Core) { 'tiny11Coremaker.ps1' } else { 'tiny11maker.ps1' })
if (-not (Test-Path $builder)) {
    Fail "not found: $builder. Extract the tiny11builder repository ZIP into $Repo."
}
Get-ChildItem $Repo -Filter *.ps1 | Unblock-File

#2. Find the mounted ISO when the drive letter is not given
if (-not $IsoDrive) {
    $vol = Get-Volume | Where-Object { $_.DriveLetter } | Where-Object {
        $root = "$($_.DriveLetter):\sources"
        (Test-Path "$root\boot.wim") -and
        ((Test-Path "$root\install.wim") -or (Test-Path "$root\install.esd"))
    } | Select-Object -First 1
    if (-not $vol) {
        Fail 'no mounted Windows 11 ISO found. Click the ISO, choose Mount and try again.'
    }
    $IsoDrive = $vol.DriveLetter
}

#3. Free space: image copy + WIM extraction with headroom
$srcBytes = (Get-ChildItem -Path "${IsoDrive}:\" -Recurse -File -ErrorAction SilentlyContinue |
             Measure-Object Length -Sum).Sum
$needGB = [math]::Ceiling(([double]$srcBytes * 3) / 1GB) + 2
$freeGB = [math]::Round((Get-Volume -DriveLetter $ScratchDrive).SizeRemaining / 1GB, 1)
if ($freeGB -lt $needGB) {
    Fail "${ScratchDrive}: has $freeGB GB free, at least $needGB GB required."
}
Write-Host "ISO: ${IsoDrive}:   Scratch: ${ScratchDrive}:   Mode: $(if ($Core) {'Core'} else {'Tiny11'})" -ForegroundColor Cyan

#4. Run the stock script (Bypass policy already applies to the process)
Push-Location $Repo
try {
    & $builder -ISO $IsoDrive -SCRATCH $ScratchDrive
} finally {
    Pop-Location
}

#5. Result
$iso = Join-Path $Repo 'tiny11.iso'
if (-not (Test-Path $iso)) {
    Fail 'tiny11.iso was not created. Check tiny11_*.log in the repository folder.'
}
$f = Get-Item $iso
Write-Host ("Done: {0} ({1:N2} GB)" -f $f.FullName, ($f.Length / 1GB)) -ForegroundColor Green
Write-Host ("SHA-256: {0}" -f (Get-FileHash $iso -Algorithm SHA256).Hash)
```

Running:

```powershell
cd C:\tiny11
powershell -ExecutionPolicy Bypass -File .\Build-Tiny11.ps1 -ScratchDrive C
```

Why `-ExecutionPolicy Bypass` is set at launch rather than globally: the command applies to **a single process**, the system policy stays `Restricted`, and once the window is closed there is nothing to revert. This is safer than `Set-ExecutionPolicy RemoteSigned` for the whole machine.

> Save the file in **UTF-8 with BOM** encoding (VS Code: "UTF-8 with BOM", PowerShell ISE — by default), otherwise PowerShell 5.1 will render the Russian messages as garbled characters.

**Why the wrapper:** the stock script accepts the same parameters but requires you to manually find the ISO drive letter, choose the scratch disk, and it doesn't check free space. The wrapper performs these checks itself and prevents you from starting a build on a full disk, where DISM fails halfway through.

**If you want to do it manually** (to pick a different scratch disk or watch every step):

```powershell
Set-ExecutionPolicy Bypass -Scope Process
cd C:\tiny11
.\tiny11maker.ps1 -ISO E -SCRATCH C
```

Without parameters, `tiny11maker.ps1` will ask for the drive letter (the letter only, no colon), then show a list of editions and ask for an index from that list. After that, it runs for 10 to 40 minutes with no human input: at the end, the script asks you to press Enter, unmounts the ISO on its own, and deletes the temporary folders.

**A no-PowerShell option — the Tiny11 Builder 0.2.0 app.** If you'd rather avoid the command line, the project offers a WinUI app with the same presets: download the ZIP from `github.com/ntdevlabs/tiny11builder/releases/latest` (x64 for Intel/AMD, ARM64 for Windows on ARM), extract the whole archive, run `Tiny11Builder.exe` and confirm the UAC prompt, click the **Tiny11** card (not Core), point it to an ISO or download the official image right in the app, and click **Build**. The working folder needs twice as much free space as the ISO's size and must be NTFS. The app verifies the tool versions itself, downloads `oscdimg` against a pinned SHA-256, and can resume an interrupted build (**Resume build**); the output is the same `tiny11.iso` plus `report.json`.

**How to check:** the PowerShell window shows a log with `Mounting Windows image…`, then `Removing…` for each component, `Exporting image…`, and `Creation completed!`. At the end, the wrapper prints `Done: C:\tiny11\tiny11.iso (N.NN GB)` and `SHA-256: …`. The build log is saved alongside as `tiny11_YYYYMMDD_HHMM.log`.

## Step 3. Verify the ISO, test it in a VM, and install

**What to do:** make sure the ISO contains only the edition you selected and the boot files, test the image in a virtual machine, then write it to a USB drive.

```powershell
Get-Item C:\tiny11\tiny11.iso | Select-Object Name, @{n='GB';e={[math]::Round($_.Length/1GB,2)}}
Get-FileHash C:\tiny11\tiny11.iso -Algorithm SHA256

$iso = Mount-DiskImage -ImagePath C:\tiny11\tiny11.iso -PassThru
$d = ($iso | Get-Volume).DriveLetter
Get-ChildItem "${d}:\sources\install.wim", "${d}:\sources\boot.wim", "${d}:\efi\microsoft\boot\efisys.bin"
Dismount-DiskImage -ImagePath C:\tiny11\tiny11.iso
```

There will be only one `install.wim` inside the trimmed ISO — that's normal: the script exports only the selected edition, not all of them.

**Why a VM:** a 5-minute smoke test shows that the image boots and the installer doesn't crash on the unattend file. Testing on a live machine right away risks being left without a working system.

**How to check:** in Hyper-V or VirtualBox, create a VM without TPM (2 vCPU, 4 GB RAM, network disabled) and boot from the ISO. Success means the installer reached the edition selection, created a local account without internet, and the system booted to the desktop.

**Writing to a USB drive:**

- **Rufus** (rufus.ie): partition scheme **GPT**, target system **UEFI**, file system FAT32 or NTFS. The "Remove requirement for 4GB+ RAM / TPM / Secure Boot" checkboxes are not needed — those checks are already stripped from the image.
- **Ventoy** (ventoy.net): just copy `tiny11.iso` to the USB drive.

Installation differs in only three ways: TPM and CPU are not checked, internet is not required during OOBE, and the account is local. If a fresh build still demands a network connection, the workaround takes five seconds: `Shift+F10` → `start ms-cxh:localonly` (on 24H2+ it's this exact command that works; `oobe\bypassnro` has been removed from newer builds).

## Checklist before trimming the system

- ☐ You need Docker, WSL2, Hyper-V, or rare Windows components → **Tiny11 only**
- ☐ An old laptop for browsing, office work, and light tasks → Tiny11 or Core
- ☐ A throwaway VM / test bench → Core
- ☐ You need security updates and the ability to add components → **Tiny11**
- ☐ You need the smallest possible image right here and now, with no maintenance → Core
- ☐ 25–30 GB free, a path without Cyrillic characters, PowerShell running as administrator
- ☐ The image has been tested in a VM, `tiny11.iso` written to a GPT/UEFI USB drive
- ☐ You have your own activation key and a backup of your data

## Common problems and fixes

**Problem. The script won't run: "running scripts is disabled on this system".**
- Error: `... cannot be loaded because running scripts is disabled on this system`.
- Cause: the system-wide PowerShell execution policy blocks third-party scripts.
- Fix: instead of changing the policy system-wide, run the wrapper with a process-level flag: `powershell -ExecutionPolicy Bypass -File .\Build-Tiny11.ps1 -ScratchDrive C`. If the file was downloaded from the internet, also run `Unblock-File .\tiny11maker.ps1`.

**Problem. The script can't find the installation files.**
- Error: `Can't find Windows OS Installation files in the specified Drive Letter`.
- Cause: the wrong drive letter was specified, the ISO isn't mounted (it's sitting as a file), or it's not an installation image.
- Fix: check the output of `Get-ChildItem E:\sources | Where-Object Name -match 'install|boot'`; if there are no such files, mount the correct ISO and run again.

**Problem. DISM fails during mounting or reports that the image is already mounted.**
- Error: `0x800f0906`, `0x800f081f`, or `The specified image is already mounted`.
- Cause: not enough free space, antivirus blocked the image files, or a stale mounted image left over from an interrupted build.
- Fix: run `Dism /Cleanup-Wim`, check `Dism /Get-MountedImageInfo`, reboot, free up 25–30 GB, and exclude `C:\tiny11` from active Defender scanning for the duration of the build.

**Problem. Setup fails on the unattend file.**
- Error: `Windows cannot read the <ProductKey> setting from the unattend answer file`.
- Cause: a known bug in Core ISOs built with app version 0.1.x: the media has an `autounattend.xml` baked in that requests a key, which newer Setup builds refuse to read.
- Fix: update Tiny11 Builder to 0.2.0 and rebuild the image from the original ISO — the fix lives in the media itself

```text
reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f
reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f
reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f
```

## Inspect the code before running it

![Illustration: Inspect the code before running it](https://ai-release.org/guides/img/kak-obrezat-windows-11-tiny11-builder-en-3.jpg)


Tiny11 Builder consists of plain-text `.ps1` files that you can read in full. A minimal check that the script does only what it claims to do:

```powershell
#1) all external downloads and deletions — as a list
Select-String -Path .\tiny11maker.ps1 -Pattern 'Invoke-WebRequest','Invoke-RestMethod','http',
  'Remove-Item','Format-Volume','diskpart' | Select-Object LineNumber, Line

#2) which Appx packages are removed
Select-String -Path .\tiny11maker.ps1 -Pattern 'Remove-AppxPackage|Remove-AppxProvisionedPackage'
```

The only external binary involved is `oscdimg.exe` (Microsoft's ISO-building utility): it is downloaded from the Microsoft symbol server or taken from an installed Windows ADK, and deleted after the build.

## Deep dive
- [Windows with AI: Copilot and neural networks in the system](https://ai-release.org/guides/windows-i-ii_en.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide)
- [How to Install Windows 11 26H2: Step-by-Step Guide with Official ISO](https://ai-release.org/guides/kak-ustanovit-windows-11-26h2-poshagovaya-instruktsiya_en.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide)

## Summary and next steps

The image you need is built from the official ISO with a single command: the wrapper checks disk space, runs `tiny11maker.ps1`, and produces `tiny11.iso` with a hash. Then test it in a VM and deploy it to the machine it was built for — Tiny11 if you need updates and WSL2, or Core if it's a one-off test bench.

## FAQ

**Is Tiny11 a pirated build?**
No. You take an official Microsoft ISO and remove components with the standard DISM; the final image is built on your own computer, and the script code is open and readable in Notepad.

**How is this better than Rufus?**
Rufus only bypasses the requirements check, leaving all the preinstalled software, telemetry, and background services in the system. Tiny11 Builder modifies the image itself: it removes packages and edits the offline registry before installation.

**Can you later restore Edge, the Store, or removed apps?**
In Tiny11 mode, the Store and winget remain, and apps can be installed from them. Edge and some system packages cannot be restored through normal means; major feature updates sometimes restore some of the removed components on their own — this is known behavior, not a build failure.

**Will this Windows receive updates?**
In Tiny11 mode — yes, the update service and optional feature installation work; already installed updates cannot be rolled back due to `ResetBase`. Core gets no updates at all: the system stays in the state it was built in.
