Git Product home page Git Product logo

tiny11builder's Introduction

tiny11builder

Scripts to build a trimmed-down Windows 11 image - now in PowerShell!
Tiny11 builder, now completely overhauled.
After more than a year (for which I am so sorry) of no updates, tiny11 builder is now a much more complete and flexible solution - one script fits all. Also, it is a steppingstone for an even more fleshed-out solution.
You can now use it on ANY Windows 11 release (not just a specific build), as well as ANY language or architecture. This is made possible thanks to the much-improved scripting capabilities of PowerShell, compared to the older Batch release.
Since it is written in PowerShell, you need to set the execution policy to Unrestricted, so that you could run the script. If you haven't done this before, make sure to run Set-ExecutionPolicy unrestricted as administrator in PowerShell before running the script, otherwise it would just crash.

This is a script created to automate the build of a streamlined Windows 11 image, similar to tiny11. My main goal is to use only Microsoft utilities like DISM, and no utilities from external sources. The only executable included is oscdimg.exe, which is provided in the Windows ADK and it is used to create bootable ISO images. Also included is an unattended answer file, which is used to bypass the Microsoft Account on OOBE and to deploy the image with the /compact flag. It's open-source, so feel free to add or remove anything you want! Feedback is also much appreciated.

Also, for the very first time, introducing tiny11 core builder! A more powerful script, designed for a quick and dirty development testbed. Just the bare minimun, none of the fluff. This script generates a significantly reduced Windows 11 image. However, it's not suitable for regular use due to its lack of serviceability - you can't add languages, updates, or features post-creation. tiny11 Core is not a full Windows 11 substitute but a rapid testing or development tool, potentially useful for VM environments.

Instructions:

  1. Download Windows 11 from the Microsoft website (https://www.microsoft.com/software-download/windows11)
  2. Mount the downloaded ISO image using Windows Explorer.
  3. Select the drive letter where the image is mounted (only the letter, no colon (:))
  4. Select the SKU that you want the image to be based.
  5. Sit back and relax :)
  6. When the image is completed, you will see it in the folder where the script was extracted, with the name tiny11.iso

What is removed:

  • Clipchamp
  • News
  • Weather
  • Xbox (although Xbox Identity provider is still here, so it should be possible to be reinstalled with no issues)
  • GetHelp
  • GetStarted
  • Office Hub
  • Solitaire
  • PeopleApp
  • PowerAutomate
  • ToDo
  • Alarms
  • Mail and Calendar
  • Feedback Hub
  • Maps
  • Sound Recorder
  • Your Phone
  • Media Player
  • QuickAssist
  • Internet Explorer
  • Tablet PC Math
  • Edge
  • OneDrive

For tiny11 core:

  • all of the above +
  • Windows Component Store (WinSxS)
  • Windows Defender (only disabled, can be enabled back if needed)
  • Windows Update (Windows Update wouldn't work anyway without WinSxS, so enabling it would only put the system in a state where it would try to update but fail spectacularily)
  • WinRE

Keep in mind that **you cannot add back features in tiny11 core**!

You will be asked during image creation if you want to enable .net 3.5 support!
Known issues:
  1. Although Edge is removed, there are some remnants in the Settings. But the app in itself is deleted. You can install any browser using WinGet (after you update the app using Microsoft Store). If you want Edge, Copilot and Web Search back, simply install Edge using Winget: winget install edge.

Note: You might have to update Winget before being able to install any apps, using Microsoft Store.

2. Outlook and Dev Home might reappear after some time.

3. If you are using this script on arm64, you might see a glimpse of an error while running the script. This is caused by the fact that the arm64 image doesn't have OneDriveSetup.exe included in the System32 folder.

Features to be implemented: - disabling telemetry Implemented in the 04-29-24 release!

  • more ad suppression
  • improved language and arch detection
  • more flexibility in what to keep and what to delete
  • maybe a GUI???

And that's pretty much it for now! Thanks for trying it and let me know how you like it!

tiny11builder's People

Contributors

bwravencl avatar chinmoykr avatar elrondo46 avatar eugenesan avatar flickza avatar jasonpatrickellykrause avatar ntdevlabs avatar rcmaehl avatar szepeviktor avatar t-r-y-o-k-s avatar ziron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiny11builder's Issues

Tiny 11 Builder Outputs "Pro" Version, but its actually Enterprise Windows Version

Is this an expected way that Tiny 11 Builder should work? Or should it produce the desired Windows 11 version we pick?

Currently tried installing two times on my laptop Windows 11 Pro version, but it always installs Windows Enterprise Edition.

I tried checking the version installed on my bootable USB drive with this command

dism /Get-WimInfo /WimFile:F:\sources\install.wim /index:1

And it reports Windows 11 Pro version,
but my computer-installed version is Windows 11 Enterprise.

IIS not available in Optional Features

I am trying out the ARM64 build as a VM with my Macbook Air M1. Just noticed that the IIS feature is missing. Anyone knows how to restore it when the custom build is already installed? Or at least, if someone can point out what to change in the script to avoid removing IIS, that would be great. Thanks in advance!

How about powershell

I think if moving to powershell, you could do a search for prefix app name and remove them so that would work with any win version
And if we use array of prefix, it could do a loop through and remove them

No install.wim

So the previous day I downloaded windows 11 version 22621.525 but the problem is there is no install.wim instead there is install.esd
so I replaces the install.wim(s) in batch code into install.esd but when I ran the code dism couldn't access the image

Completely Bare Bones preset?

How can we go about getting a build that has just start menu, settings, explorer, and the ability to install Appx, and msu? Ie the image should be manually serviceable, no wsus, no store, no apps, etc.

Error: 2

Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

No matter what just gives me this.

Windows update not working

all tryed normal solutions :

  • sfc /scannow
  • windows update fix tool
  • dism /online /cleanup-image /startcomponentcleanup

and more... but not working

Script completes with to errors and no iso file

the tiny11 image is now completed. Proceeding with the making of the ISO...
Copying unattended file for bypassing MS account on OOBE...
The system cannot find the file specified.

Creating ISO image...
'C:\Users\username\Desktop\New' is not recognized as an internal or external command,
operable program or batch file.
Creation completed Press any key to exit the script...
Press any key to continue . . .

No iso file in folder with bat file

Some issues I found while testing.

Before anything, thank you! I'm really satisfied with your work here.

While I used Tiny11, I found some stuff that doesn't work as expected:

  • Changing Windows language to anything other than English breaks some program windows. If you try opening the settings for programs like HWiNFO, MSI Afterburner or 7-Zip, nothing happens. Not even a blink. Changing the language back solves this.

  • I use an Xbox One wireless controller with my PC and its Guide button doesn't work at all. I guess it's because of the Xbox programs that got removed. I'll try restoring them.

An Issue with the .bat file

Whenever I launch the .bat file and press enter the thing just force closes me and i cannot type the ISO mounted drive letter.

My tiny 11 is crashing

I'm using the noreq b2 version, but i'm having constants BSOD.

16gb Ram
AMD FX-6300
RTX 2060

What can i do to fix it ?

Add Narrator and Microsoft TTS

I don't think these 2 things cause huge issues at least in terms of telemetry, and to my knowledge they're not super big either so they shouldn't cause a dramatic increase of disk space usage.
I'm blind and would love to try out the Tiny Windows versions on some of my hardware, but the unavailability of Narrator makes it that much harder, given there's no speech in the installer and the installed system in that case.

How to remove Cortana

How to remove Cortana

You can also remove Cortana from Command Prompt (admin) using the “winget uninstall –id 9NFFX4SZZ23L” command.

oscdimg not found

After running the tiny11 creator 22621.525.bat file an error message that oscdimg can't be found is displayed. This is on Windows 10 Home. Thanks for creating this utility.

Asks for Drive Letter Then Instantly Closes the Window.

I feel mad stupid but got everything downloaded and ready to go and when I ran the proper bat the CMD window opens up flawlessly and asks for the drive letter for the ISO which is mounted then instantly the CMD window closed with no log or error.

Future\Current Microsoft Windows 11 ISO images Support?

Will future and current Microsoft Windows 11 ISO images always work or should people expect problems with the current or future releases?

Which, I'm assuming, is why you mention :

"As of now, only build 22621.525 (the one that can be downloaded from the Microsoft website), 22621.1265 (the latest public build) and 25300 (latest Insider build as of now) are supported."

In the description @ntdevlabs
In you're spare time can the public expect you to combat this, with updates, should such future \ current ISO's have issues?

Local Security Authority protection is disabled

Local Security Authority (LSA) protection is a mechanism that prevents unsigned drivers and addons to be loaded on the local security authority. Windows Security is currently complaining of this issue in both of my Tiny11 computers, and enabling it and rebooting still does not clear the warning.

Remove MS Edge Leftovers from the settings menu

All you have to do is delete

Microsoft Edge
Microsoft Edge Update
Microsoft Edge WebView

from

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

NTLITE preset version possible?

Title says it, more of a question than an actual issue, I'm considering running this or making my own via NTLITE, is it possible to make an NTLITE preset that generates (mostly) the same tiny11 iso?

This is how to remove Cortana

As seen on pending "issues", here is how to remove Cortana completely on Win11 (on a running system).

Open PowerShell, and execute:

Get-AppxPackage *549981* | Remove-AppxPackage

Needs to be adapted to your offline .BAT script

(PS: Cortana sometimes changes its folder name so the reason for the wildcard. Your script already has a line for that, but it is not the current Cortana Appx name anymore. Although the sequence 549981 remais, the end of the string now differs.)

The above command works (at least on any running Win11) And the Cortana Removal is instantaneous;

Windows Search Bar not Working at all

Essentially the title. Whether I use the magnifying glass bar, or the windows bar, I can not search for any programs whatsoever. I'll attach a small video demonstrating what I mean here.

If anyone knows why this is happening (probably me being dumb), I'd really appreciate it!

Please add log

Please add log in current dirctory, because dism logs is not verbose. i have errors but dont'know which...

Tiny Win 11 of new images

Thanks for the constructor. Everything works perfectly!
How to make a tiny Win 11 from new images v. 25309, v. 25314 and later?

Beware: oscdimg.exe in this repo is not the original from Microsoft

oscdimg.exe in this repo is likely modified.

Original file from Microsoft ADK: 134.98 KB
This file: 140.28 KB

The original file from Microsoft has a valid cert chain all the way up to the root CA which is trusted.
This file has a valid cert chain up to the root CA, which is a different one and untrusted.

I don't think I have to explain the risk involved in running a file like that.

what happens if you use windows 10

What will happen if you feed this tool a Windows 10 image? I would've treated my ISO of Windows 10 S 1709 with this, but it's probably not going to work.

Boot Mgr is Missing

Hey guys i had tiny 11 installed on my hard drive along with Ubuntu, but yesterday i messed something up and now my bootmgr file is missing so i cannot boot into windows, I am seeking help about this and want someone to guide me on how can I repair it, i also have tiny 11 on my bootable usb but i am not aware how do I boot into windows recovery since there is no option like that in the windows setup, i saw couple of tutorials but there isn't a option saying "repair windows" so can you guys please help me? and btw i can boot into Ubuntu and do things.

Is there a way to migrate current installation to tiny 11 build?

Let's say you don't want to reinstall every app and games you already have in your system drive as well as your other drives. Is there a way to reinstall your windows 11 installation with a tiny 11 build without having to delete these files and software?

Cortana Removal

Currently, you must manually remove Cortana with Powershell :

Get-AppxPackage Microsoft.549981C3F5F10 | Remove-AppxPackage

Error: 15601

I just constantly get Error: 15601. After it finishes it doesnt generate a file (probably due to the error)

Not getting an ISO file after running the script.

Looking at the instructions, which seem simple enough, I'm having a problem getting from step 6 to step 7. Is there a step that should be there that I'm missing or is there an error in the script that's causing me not to get an ISO file out. What I do get it a "Tiny 11" folder on my C drive but that's it and obviously, that's not an ISO file that I can turn into a bootable drive.

Acknowledge

At first, I appreciate your work 👏

But removing application from image does make any difference ?
I mean, There is some debloat scripts, for removing bloated applications...

Here is some popular debloat scripts, just in case anyone curious...

Script quits with error because Install.wim not found in /sources folder

Issue description

The script "tiny11 creator 22621.525.bat" exits with error when using ISO downloaded from Microsoft website.
Root cause:
There is no install.wim file found in the \sources folder.
ESD is the compressed format and must be converted to install.wim before the script can execute.
Windows 11 ISO file downloaded from website - "https://www.microsoft.com/software-download/windows11" on 05 March 2023.
Windows 11 ISO build is 10.0.22621.525

Log

Please enter the drive letter for the Windows 11 image: E

Can't find Windows OS Installation files in the specified Drive Letter..

Please enter the correct DVD Drive Letter..
The system cannot find the batch label specified - Stop

D:\Downloads\tiny11builder>

Resolution

Convert the Install.esd format to Install.wim by running the additional command:

Dism /Export-image /SourceImageFile:c:\tiny11\sources\install.esd /SourceIndex:1 /DestinationImageFile:c:\tiny11\sources\install.wim /Compress:max /CheckIntegrity

if path has space in it, image is not created

essentially i tried running the tool in my downloads folder and after it finished making the image and was attempting to copy it back to it's folder, it errored that a path called "C:\Users\My" did not exist and then failed, wasting all of time that i spent waiting for it.

my user folder is named "My Name" which leads me to believe the space in my user folder broke it.

also i seem like the only person that can right more than 2 sentences in the issue section of this repo, sorry about that man

Is there a way to downgrade to tiny11 without uninstalling applications?

I'm currently considering downgrading my os to tiny11 but there is a lot of applications installed on my laptop, most of them are games, multimedia software, and python packages for programming. Is there a way to downgrade to tiny11 without comprimising these things or is this the equivalent of reinstalling everything from scratch?

tiny11 creator 22621.525.bat shuts down your computer after copying the mounterd ISO

I used the tiny11 creator 22621.525.bat to make the build using the ISO from the Microsoft website Win11_22H2_English_x64v1.iso
which is 22621.525 build.

The machine SHUTS DOWN after the script copies the mounted ISO's contents???
To be able to continue with the build process I have to edit the bat file to start the process from line 32 (echo Getting image information:)
After that, the script created the desired ISO.

Issue at Creating ISO image

Hello, after running all steps as administrator around the end part of the process i get this error and the iso file is not created. Please help fix this issue.
"""""
Creating ISO image...
'C:\Users\Mech' is not recognized as an internal or external command,
operable program or batch file.
Creation completed Press any key to exit the script...
Press any key to continue . . .
"""""

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.