### Run Standard Tiny11 Image Creator
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
Execute the standard tiny11maker.ps1 script with explicit parameters, positional parameters, or interactively. Use Get-Help for full documentation. Example output shows script interaction and progress.
```powershell
# First, set execution policy for the current session
Set-ExecutionPolicy Bypass -Scope Process
# Run with explicit parameters (recommended)
.\tiny11maker.ps1 -ISO E -SCRATCH D
# Or run with positional parameters (ISO drive first, then scratch drive)
.\tiny11maker.ps1 E D
# Or run interactively (script will prompt for input)
.\tiny11maker.ps1
# Get help documentation
Get-Help .\tiny11maker.ps1 -Full
# Example output:
# Welcome to the tiny11 image creator! Release: 09-07-25
# Please enter the drive letter for the Windows 11 image: E
# Drive letter set to E:
# Copying Windows image...
# Copy complete!
# Getting image information:
# Index : 1
# Name : Windows 11 Home
# Index : 2
# Name : Windows 11 Pro
# Please enter the image index: 2
# Mounting Windows image. This may take a while.
# ...
# Creation completed! Press any key to exit the script...
```
--------------------------------
### Autounattend.xml for OOBE and Windows PE Settings
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
This XML configuration bypasses Microsoft account requirements during OOBE and enables compact installation during Windows PE.
```xml
true
false
true
```
--------------------------------
### Run Core Tiny11 Image Creator
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
Execute the core tiny11Coremaker.ps1 script, which is interactive only. This script creates a minimal image for testing and development. Example interaction shows prompts for confirmation and configuration.
```powershell
# Set execution policy
Set-ExecutionPolicy Bypass -Scope Process
# Run the core builder (interactive only)
.\tiny11Coremaker.ps1
# Example interaction:
# Welcome to tiny11 core builder! BETA 09-05-25
# This script generates a significantly reduced Windows 11 image...
# Do you want to continue? (y/n)
# y
# Off we go...
# Please enter the drive letter for the Windows 11 image: E
# ...
# Do you want to enable .NET 3.5? This cannot be done after the image has been created! (y/n)
# y
# Enabling .NET 3.5...
# .NET 3.5 has been enabled.
# ...
# Creation completed!
```
--------------------------------
### Remove-RegistryValue Function for WIM Images
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
A helper function to delete registry keys from mounted WIM images. It uses the 'reg delete' command. Examples show removing Edge uninstall entries and suggested apps subscriptions.
```powershell
# Function signature
function Remove-RegistryValue {
param (
[string]$path
)
# Executes: reg delete $path /f
}
# Example: Removing Edge uninstall entries
Remove-RegistryValue "HKEY_LOCAL_MACHINE\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
# Example: Removing suggested apps subscriptions
Remove-RegistryValue 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Subscriptions'
Remove-RegistryValue 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SuggestedApps'
```
--------------------------------
### Set-RegistryValue Function for WIM Images
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
A helper function to set Windows registry values within mounted WIM images. It uses the 'reg add' command. Examples demonstrate bypassing TPM checks, disabling telemetry, sponsored apps, and Copilot.
```powershell
# Function signature
function Set-RegistryValue {
param (
[string]$path,
[string]$name,
[string]$type,
[string]$value
)
# Executes: reg add $path /v $name /t $type /d $value /f
}
# Example usage within the script (bypassing TPM check)
Set-RegistryValue 'HKLM\zSYSTEM\Setup\LabConfig' 'BypassTPMCheck' 'REG_DWORD' '1'
# Example: Disabling telemetry
Set-RegistryValue 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\DataCollection' 'AllowTelemetry' 'REG_DWORD' '0'
# Example: Disabling sponsored apps
Set-RegistryValue 'HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SilentInstalledAppsEnabled' 'REG_DWORD' '0'
# Example: Disabling Copilot
Set-RegistryValue 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsCopilot' 'TurnOffWindowsCopilot' 'REG_DWORD' '1'
```
--------------------------------
### Check ADK and Create Bootable ISO
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
This script checks for the Windows ADK, downloads oscdimg.exe if not found, and then creates a bootable ISO with UEFI and legacy BIOS support.
```powershell
$ADKDepTools = "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\$hostArchitecture\Oscdimg"
if ([System.IO.Directory]::Exists($ADKDepTools)) {
$OSCDIMG = "$ADKDepTools\oscdimg.exe"
} else {
# Download oscdimg.exe from Microsoft Symbol Server
$url = "https://msdl.microsoft.com/download/symbols/oscdimg.exe/3D44737265000/oscdimg.exe"
$localOSCDIMGPath = "$PSScriptRoot\oscdimg.exe"
Invoke-WebRequest -Uri $url -OutFile $localOSCDIMGPath
$OSCDIMG = $localOSCDIMGPath
}
# Create bootable ISO with UEFI and legacy BIOS support
& "$OSCDIMG" '-m' '-o' '-u2' '-udfver102' `
"-bootdata:2#p0,e,b$ScratchDisk\tiny11\boot\etfsboot.com#pEF,e,b$ScratchDisk\tiny11\efi\microsoft\boot\efisys.bin" `
"$ScratchDisk\tiny11" `
"$PSScriptRoot\tiny11.iso"
# Output: tiny11.iso created in the script directory
```
--------------------------------
### Run tiny11builder Script
Source: https://github.com/ntdevlabs/tiny11builder/blob/main/README.md
Executes the tiny11builder script to create a customized Windows 11 ISO. Requires specifying the mounted ISO drive letter and the desired SKU. The output ISO will be named tiny11.iso.
```powershell
C:/path/to/your/tiny11/script.ps1 -ISO -SCRATCH
```
--------------------------------
### Mount Windows Image with DISM
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
Mounts a Windows image (install.wim) to a specified scratch directory using DISM. Requires the path to the WIM file and the image index. A scratch directory is created if it doesn't exist.
```powershell
# Mount the install.wim image to a scratch directory
$ScratchDisk = "D:"
$index = 2 # Windows 11 Pro
New-Item -ItemType Directory -Force -Path "$ScratchDisk\scratchdir"
Mount-WindowsImage -ImagePath "$ScratchDisk\tiny11\sources\install.wim" -Index $index -Path "$ScratchDisk\scratchdir"
```
--------------------------------
### Load and Modify Offline Registry Hives
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
Loads registry hives from a mounted WIM image to apply system tweaks, such as hardware requirement bypasses and enabling local accounts during OOBE. Remember to unload the hives when finished.
```powershell
# Load registry hives from mounted image
$ScratchDisk = "D:"
reg load HKLM\zCOMPONENTS "$ScratchDisk\scratchdir\Windows\System32\config\COMPONENTS"
reg load HKLM\zDEFAULT "$ScratchDisk\scratchdir\Windows\System32\config\default"
reg load HKLM\zNTUSER "$ScratchDisk\scratchdir\Users\Default\ntuser.dat"
reg load HKLM\zSOFTWARE "$ScratchDisk\scratchdir\Windows\System32\config\SOFTWARE"
reg load HKLM\zSYSTEM "$ScratchDisk\scratchdir\Windows\System32\config\SYSTEM"
# Apply hardware requirement bypasses
& 'reg' 'add' 'HKLM\zSYSTEM\Setup\LabConfig' '/v' 'BypassCPUCheck' '/t' 'REG_DWORD' '/d' '1' '/f'
& 'reg' 'add' 'HKLM\zSYSTEM\Setup\LabConfig' '/v' 'BypassRAMCheck' '/t' 'REG_DWORD' '/d' '1' '/f'
& 'reg' 'add' 'HKLM\zSYSTEM\Setup\LabConfig' '/v' 'BypassSecureBootCheck' '/t' 'REG_DWORD' '/d' '1' '/f'
& 'reg' 'add' 'HKLM\zSYSTEM\Setup\LabConfig' '/v' 'BypassTPMCheck' '/t' 'REG_DWORD' '/d' '1' '/f'
& 'reg' 'add' 'HKLM\zSYSTEM\Setup\MoSetup' '/v' 'AllowUpgradesWithUnsupportedTPMOrCPU' '/t' 'REG_DWORD' '/d' '1' '/f'
# Enable local account on OOBE (bypass Microsoft account requirement)
& 'reg' 'add' 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\OOBE' '/v' 'BypassNRO' '/t' 'REG_DWORD' '/d' '1' '/f'
# Unload registry hives when done
reg unload HKLM\zCOMPONENTS
reg unload HKLM\zDEFAULT
reg unload HKLM\zNTUSER
reg unload HKLM\zSOFTWARE
reg unload HKLM\zSYSTEM
```
--------------------------------
### Remove Provisioned AppX Packages
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
Removes specified bloatware AppX packages from a mounted Windows image using DISM. Ensure the image is mounted to the $ScratchDisk\scratchdir path.
```powershell
$packages = & 'dism' '/English' "/image:$ScratchDisk\scratchdir" '/Get-ProvisionedAppxPackages' |
ForEach-Object {
if ($_ -match 'PackageName : (.*)') {
$matches[1]
}
}
# Define packages to remove (bloatware)
$packagePrefixes = 'Clipchamp.Clipchamp', 'Microsoft.BingNews', 'Microsoft.BingWeather',
'Microsoft.GamingApp', 'Microsoft.GetHelp', 'Microsoft.MicrosoftOfficeHub',
'Microsoft.MicrosoftSolitaireCollection', 'Microsoft.WindowsFeedbackHub',
'Microsoft.Xbox.TCUI', 'Microsoft.XboxGamingOverlay', 'Microsoft.YourPhone',
'Microsoft.ZuneMusic', 'Microsoft.ZuneVideo', 'Microsoft.Copilot'
# Remove matching packages
$packagesToRemove = $packages | Where-Object {
$packageName = $_
$packagePrefixes -contains ($packagePrefixes | Where-Object { $packageName -like "*$_*" })
}
foreach ($package in $packagesToRemove) {
& 'dism' '/English' "/image:$ScratchDisk\scratchdir" '/Remove-ProvisionedAppxPackage' "/PackageName:$package"
}
# Cleanup and unmount with changes saved
dism.exe /Image:$ScratchDisk\scratchdir /Cleanup-Image /StartComponentCleanup /ResetBase
Dismount-WindowsImage -Path "$ScratchDisk\scratchdir" -Save
# Export with recovery compression for smaller ISO size
Dism.exe /Export-Image /SourceImageFile:"$ScratchDisk\tiny11\sources\install.wim" /SourceIndex:$index /DestinationImageFile:"$ScratchDisk\tiny11\sources\install2.wim" /Compress:recovery
```
--------------------------------
### Remove Edge and OneDrive
Source: https://context7.com/ntdevlabs/tiny11builder/llms.txt
Manually removes Microsoft Edge and OneDrive from the mounted Windows image. This involves taking ownership and granting full control to necessary directories and files before deletion.
```powershell
$ScratchDisk = "D:"
$adminSID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-544")
$adminGroup = $adminSID.Translate([System.Security.Principal.NTAccount])
# Remove Edge directories
Remove-Item -Path "$ScratchDisk\scratchdir\Program Files (x86)\Microsoft\Edge" -Recurse -Force
Remove-Item -Path "$ScratchDisk\scratchdir\Program Files (x86)\Microsoft\EdgeUpdate" -Recurse -Force
Remove-Item -Path "$ScratchDisk\scratchdir\Program Files (x86)\Microsoft\EdgeCore" -Recurse -Force
# Take ownership and remove Edge WebView
& 'takeown' '/f' "$ScratchDisk\scratchdir\Windows\System32\Microsoft-Edge-Webview" '/r'
& 'icacls' "$ScratchDisk\scratchdir\Windows\System32\Microsoft-Edge-Webview" '/grant' "$($adminGroup.Value):(F)" '/T' '/C'
Remove-Item -Path "$ScratchDisk\scratchdir\Windows\System32\Microsoft-Edge-Webview" -Recurse -Force
# Remove OneDrive setup
& 'takeown' '/f' "$ScratchDisk\scratchdir\Windows\System32\OneDriveSetup.exe"
& 'icacls' "$ScratchDisk\scratchdir\Windows\System32\OneDriveSetup.exe" '/grant' "$($adminGroup.Value):(F)" '/T' '/C'
Remove-Item -Path "$ScratchDisk\scratchdir\Windows\System32\OneDriveSetup.exe" -Force
```
--------------------------------
### Set PowerShell Execution Policy
Source: https://github.com/ntdevlabs/tiny11builder/blob/main/README.md
Temporarily bypasses the execution policy for the current PowerShell session to allow script execution. This change does not affect the original policy.
```powershell
Set-ExecutionPolicy Bypass -Scope Process
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.