Upgrade Windows 10 to Windows 11 using setup.exe with command line

Chua Liang Wei 186 Reputation points
2022-12-01T03:11:20.723+00:00

We have fleet of Windows 10 devices that can upgrade to Windows 11.

We need to upgrade them remotely using tool using the ISO with setup.exe

  1. downloaded the Windows 11 ISO from official website
  2. push the ISO and command to the remote devices with following commands. Setup.exe /auto upgrade /compat ignorewarning /dynamicupdate disable /showoobe none /eula accept /quiet /noreboot

We can see the setup.exe show under task manager for test devices but it had run overnight but nothing happened.
What could be gone wrong?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,695 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,856 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Douglas Clark 5 Reputation points
    2023-04-12T20:39:06.5366667+00:00

    Mount the ISO and save all files to a new folder like 22H2. Then execute the file in your location on that computer. Unmount the ISO. The feature update is a 2 part install. First part take about 25 minutes. Then during the reboot it will finish the install. It will take about 25 minutes. C:\Location of your folder\22H2\Setup.exe /Auto Upgrade /compat ignorewarning /quiet /norestart /dynamicupdate disable /eula accept /imageindex 3 Then you need to set the registry key to install Feature update at next reboot.
    HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\InstallAtShutdown",1,"REG_DWORD

    1 person found this answer helpful.

  2. Jason 0 Reputation points
    2023-09-20T20:27:17.4+00:00

    Anyone have an issue with this registry key?? seems that ONLY "Authenticated Users" can edit or delete etc.. running script remotely as System (even though System is the "Owner") cannot adjust the value, or delete the key or merge a .reg file to make adjustments.. and with over 2000 machines that need to get updated from windows 10 to windows 11... looks like I will need to login to each PC and set the value with an "Authenticated User" ??? anyone see this issue or anyway to get around it?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.