/tinier22

针对自己的系统要修改autounattend.xml

Primary LanguageBatchfileApache License 2.0Apache-2.0

tinier22

这个脚本剔除了Windows 10/11 要求的TPM和一些硬件最低要求,是在tinier11上增加修改而来的 Script to build a trimmed-down Windows 10/11 image without TPM, hardware or MS Sign-in requirements. Insired by tininer11 builder.

细节 Description

这个脚本从tiny11,tinier11而来,用了一些微软的工具(dsim,xcopy,reg(这个是系统内带的)oscdimg(这个需要另外下载)和开源的解压软件7Z(这都需要下载),为了方便我从原始网站微软、7Z下载了 最小工具软件,放入了tools下面,如果你不放心,自己从原始网站下载,记得放入tools里。 This is a script to automate the build of a streamlined Windows 10/11 image, similar to tiny11. Uses Microsoft dism, xcopy, reg and oscdimg utiltites. 微软windows安装的应答文件 autounattend.xml 你应根据你自己的情况来修改,我已经在里面加了备注,现在不用任何干预,会自己安装完成,开通了administrator,密码是123@@@,远程桌面设置也易打开 Included is an autounattend.xml answer file, which is used to bypass the MS account on OOBE, remove MS Teams and to deploy the image with the /compact flag. It should work on any build of Windows 11 (see Windows 10 notes below). 精简Windows的模块或者内容,请检查appPackageNames.txt featureNames.txt sysPackageNames.txt要保留下来的请在前面加"#" What is removed: check appPackageNames.txt featureNames.txt sysPackageNames.txt - customize by deleting lines or commenting with "#". MS Edge and OneDrive removed conditionally - see sysPackageNames.txt.

准备工作Before you start

  1. 需要windows的机器You need working Windows 10 or 11 machine.
  2. 你可以从https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install 下载oscdimg.exe,并放入tools文件夹里,同样从https://www.7-zip.org/download.html 下载7z.exe和7z.dll也都放入tools文件夹里 Get oscdimg.exe from Windows ADK https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install and put into the same directory as bat file (or into one of may PATH locations).
  3. 需要大约20G的硬盘空间来作为下载windows ISO文件以及工作空间。About 20GB free NTFS file system space. Script can run on any NTFS location (including RAM disk) and will create temp files inside its folder, about 3x the size of Windows ISO you have.

具体步骤Instructions:

  1. 下载本部分的所有文件并展开到windows 下的某个盘符下(例如展开到C:\ainp文件夹里)
  2. 从微软或者其他地方下载windows10/11的安装镜像文件Download latest Windows 10/11 from UUPDump (without customizations/drivers/patches/.NET etc) or from the Microsoft website (https://www.microsoft.com/software-download/windows11).
  3. 利用Windows的文件资源管理器装载 Mount the downloaded ISO image using Windows Explorer.
  4. 修改并确保正确要删除和保留的模块和功能(appPackageNames.txt featureNames.txt sysPackageNames.txt。Edit/review appPackageNames.txt featureNames.txt sysPackageNames.txt - and comment-out with '#' things you don't want to remove.
  5. Copy win10/autounattend.xml over to script folder - if you are customizing Windows 10.
  6. Run "tinier11.bat" as Admin.
  7. Select the drive letter where the image is mounted (only the letter, no colon (:)) - for example "F".
  8. Select the image index that you want the image to be based. For example, "1.Windows Home", "2. Windows Pro", "3. Education" - enter "2".
  9. When the work is completed, you will see it in the folder where the script was extracted, with the name "tinier11.iso".

After work is done

  1. I suggest renaming ISO file to something meaningful like "tinier11pro.iso". The script will preserve/rename any previous existing "tinier11.iso" file by renaming it with date/time-stamp.
  2. Word of caution - test your created ISO within VirtualBox/VMware/QEMU or other similar free virtual environment - before trying to run on a real machine.
  3. There are post-install optimizations of Windows possible. Stay tuned for more.

Known issues:

  1. Windows 11 autounattend.xml file is not compatible with Windows 10. So I created a separate autounattend.xml file for Windows 10.
  2. Although Edge is removed, the icon and a ghost of its taskbar pin are still available. Also, there are some remnants in the Settings. But the app in itself is deleted.
  3. Windows Update sometimes manages to reinstall a lot of things - MS Edge, WebExperience etc. They can be manually removed. Let me know if there is a way to permanently block their installation.
  4. Windows 10 x86 (32 bit) is not compatible with autounattend.xml - I'm working to get the working one. Meanwhile - just remove autounattend.xml from script dir if you are on x86 Windows 10.

Improvements compared to tiny11

Removed hard dependencies on Windows build number. Added customizable debloat options with the ability to add new ones as they come (coPilot?). No hardcoded fixed C: locations for temp dirs. You can run the script on RAMdisk to avoid SSD wear. No binaries - you download them yourself. Proper error handling with red error text to boot. Preservation of previously created tinier11.iso. Needless timeout pauses removed. A lot of comments to understand the script.

Is there a virus or trojan?

There are no binaries supplied, get them from trusted Microsoft websites, and the script source is highly readable and commented. There is no URL invocation of any kind, so nothing suspiciois will be slip-streamed into your ISO.

Any upcoming Improvements?

As Windows 11 is rapidly changes there will be more packages added to it, and I will keep my packages updated. There might be some light registry tweaks added. There will be some improvements to autounattend.xml to do fine tuning.