This script allows you to modify a Windows 11 ISO to bypass the Microsoft Account / cloud login requirement, enabling offline account setup. It works on Kali Linux, Ubuntu, and other Debian-based distributions.
- Checks and installs required dependencies (
xorriso
,genisoimage
,coreutils
,util-linux
) - Checks available disk space before extracting the ISO (~10 GB required)
- Injects
ei.cfg
andoobe.bypassnro
to allow local/offline account creation - Builds a new bootable ISO
- Generates SHA256 and SHA1 hashes for verification
- Cleans up temporary files automatically
chmod +x remove_msa_from_win11.sh
./remove_msa_from_win11.sh Windows.iso --temp /large/storage/path
<Windows.iso>
– Path to your original Windows 11 ISO--temp /path
– Optional: Use a directory with at least 10 GB free space
┌──(kali㉿kali)-[~/Desktop]
└─$ ./remove_msa_from_win11.sh Windows.iso --temp .
[*] Mounting ISO...
mount: /home/kali/Desktop/win11mod/mnt: WARNING: source write-protected, mounted read-only.
[*] Copying ISO contents...
[*] Unmounting ISO...
[*] Adding ei.cfg and oobe.bypassnro...
[*] Building new ISO: Windows_NoMSA.iso
xorriso 1.5.6 : RockRidge filesystem manipulator, libburnia project.
Drive current: -outdev 'stdio:Windows_NoMSA.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 17.7g free
Added to ISO image: directory '/'='/home/kali/Desktop/win11mod/extract'
xorriso : UPDATE : 994 files added in 1 seconds
xorriso : UPDATE : 0.39% done
xorriso : UPDATE : 84.20% done
xorriso : UPDATE : 99.02% done
ISO image produced: 2387503 sectors
Written to medium : 2387503 sectors at LBA 0
Writing to 'stdio:Windows_NoMSA.iso' completed successfully.
[*] Generating SHA256 and SHA1 hashes...
45a143157adc60db2cad7ed583128d0410726cffe0555b8b4f8d100693c67be7 Windows_NoMSA.iso
490419b1c5803da00e839f2daa02c1a7bc8e6744 Windows_NoMSA.iso
[*] Cleaning up temporary files...
[+] Done!
[+] Output ISO: Windows_NoMSA.iso
[+] SHA256: 45a143157adc60db2cad7ed583128d0410726cffe0555b8b4f8d100693c67be7
To verify the new ISO after transfer:
sha256sum Windows_NoMSA.iso
Expected SHA256:
45a143157adc60db2cad7ed583128d0410726cffe0555b8b4f8d100693c67be7
- Attach the new ISO to your VM (TrueNAS, VirtualBox, Proxmox, etc.)
- Boot and proceed with the installer
- You will now see “I don’t have Internet” and can create a local account