How to Create a Windows 11 ISO That Installs Programs Automatically on First Logon?

0
31
Asked By GamerNinja42 On

I'm attempting to create a Windows 11 ISO image that automatically installs my desired programs upon the first logon. I'm using the Unattend Generator tool from Schneegans with an ISO downloaded directly from Microsoft. I have a script that checks if the system version is compatible and then attempts to install various applications using `winget`. Here's a snippet of my code: It includes checks for the operating system version and a loop to try locating `winget.exe`, along with commands to silently install multiple applications like 7zip, LibreWolf, OBS Studio, and others. I'm wondering if my code looks correct for achieving this, and if anyone has tips or modifications to suggest?

5 Answers

Answered By TechGuru23 On

Before diving into this kind of setup, just a heads up: messing with your BIOS settings or disk setup has potential risks, like data loss. Make sure your backups are solid before making any big changes! If you want tips on safe practices, feel free to check out our FAQ thread for some detailed guidance.

Answered By UserXtreme On

Honestly, you might want to reach out to the person who developed that imaging software. They could offer you direct insights on your setup.

Answered By CodeMaster99 On

It's actually better to install all required software first, then run a sysprep before creating the image. This might simplify things a lot.

Answered By EasyInstall475 On

You could simplify things by using a Ninite installer for all your apps and then running that through your batch file. It would significantly cut down on the number of lines you need in your script!

Answered By CuriousMind89 On

Quick question: do you need to specify where the files should install, or will it auto-detect? Also, does the script execute right after installation or just at first login? Lastly, just a thought – when you first boot a new PC, you typically lack internet connectivity unless you’ve got the drivers set up. Will these apps install offline, or do they need to wait for an internet connection to download updates?

HelpfulTecky -

If you have a stable internet connection, you should be fine! The apps will wait until you're logged in to start installing, which should be when you’ve got internet.

InsightfulSteve -

Good point! But since I will have internet, the script will handle the installations right after I log in. Everything's configured via an unattend.xml in my Windows installation setup.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.