Looking for command line upgrade from Windows 10 to 11 for multiple systems


KeithK

New member
Local time
11:03 AM
Posts
6
OS
Windows 10
I'm looking for a command line update for Windows 10 to 11 that can be pushed to a number of systems. The users are not local admins on their systems. I was able to create a command line using the Windows 11 update assistant that works, but when run from a 3rd party app push or as a scheduled task, does not give the user a chance to defer the reboot which causes a forced update without warning. The command line I found is c:\windows\temp\Windows11Update.exe /quietinstall /skipeula /auto upgrade /CopyLogs c:\build\win11upgradelog\Win11_FeatureUpdate.log. If the user is a local admin and they manually run the command, they get the option from the Windows update assistant with a 30 min countdown to defer the reboot. If they are not a local admin and the command is pushed and run as the system account (either direct or in a batch file done with scheduled task) all the user gets is the notification that the system is rebooting now. All the systems are Windows 11 ready so I know if will work. Seems like Microsoft has made the bulk push of this very difficult.
 
Windows Build/Version
Windows 10 23H2

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Computer type
Laptop
Since the Admin user's experience is what you want, why not set up the task to be run from Task scheduler using an Admin account's authority yet bypassing an Admin prompt?
Whilst I know nothing about the particular command you are running, I do have some Admin tasks set up in TS that allow a standard user to run them without any Admin prompt.
The standard user just runs a SchTasks command that points to the task in question and that task has had the Admin username-password & Run with highest privileges saved in its definition.
Elevated Shortcut without UAC - TenForumsTutorials

I don't know why you brought the System user into this situation.


Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
Unfortunately, we are seeing the same thing when run from the task scheduler. It runs (and upgrades to Windows 11), but the user never sees the pop up from the application that gives them the option to defer the reboot. All they get is that the system is rebooting now with no other warning. If we can get that screen to appear so they can defer the reboot until they can save files, then we are set.
 

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Computer type
Laptop
I suspect that since the end users are not admin, running that command as an admin locks them out from any interactivity.

A workaround might be to run 2 tasks, one to notify the user about the pending update, allowing them to defer (say from a batch file), which after the task is allowed, calls the second admin-only silent task that actually performs the update?

But a better option, IMO, would be to simply schedule the tasks for when the user is not working, so in the middle of the night, since it is both automated and unattended anyway.
 

My Computers My Computers

  • At a glance

    Windows 11 23H2 Current buildAMD Ryzen 9 3950X4 * 32 GB - Corsair Vengeance 3600 MHzEVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12...
    OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • At a glance

    ChromeOS Flex Dev Channel (current)Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 250...16 GBIntel(R) HD Graphics 520
    Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Keyboard
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
I know nothing about the file Windows11Update.exe
Perhaps it has other switches that might help.

Just out of interest, where did you find documentation for this command? You didn't just dream up the switches you mentioned - /quietinstall /skipeula /auto upgrade /CopyLogs c:\build\win11upgradelog\Win11_FeatureUpdate.log


Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
Unfortunately, Microsoft has not published any of the switches for the Update Assistant. I found a number of other sites that have the information. They reverse engineered the application to find the switches. The links below are some of the sites. There was one that not only had the switches, but identified what each one does which I can't find the URL for. Good thought on removing the /quietinstall. I'm testing that now and will let you know.

 

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Computer type
Laptop
Quick update without the /quietinstall, I can see it running in the task Manager, but not doing anything. I think it is waiting for EULA approval which does not show.
 

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Computer type
Laptop

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
I did try /noRestartUI and discovered that is the reverse of what I need. When I manually ran the command line using an account with local Admin rights on a test system, that option completely suppressed the restart box below. The system just rebooted, no warning. That's the box I need to appear to the users.
win11 restart.jpg
 

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Computer type
Laptop
I see.
So that switch is no 'restartui' rather than 'no restart' ui.


Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
It appears that is correct. It suppresses that box completely.
 

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Computer type
Laptop
I created an account just so I could post this. Push this script to deploy Windows11InstallationAssistant.exe remotely.

It's runnign one command if a user is logged in ($explorer is true) and another command if no one's logged in.

I can't find the site where I came across this, but serviceUI is the magic here. It's a microsoft tool - not quite sure where you get it from but it's out there. I'll update this if I find the missing info.

The result will be, for a logged on user, that the GUI will show up when the install completes and is showing the 30 minute notice to reboot.

Code:
$explorer = Get-Process -Name explorer -ErrorAction SilentlyContinue

if ($explorer) {
    Start-Process "C:\ProgramData\TRC-Win11Upgrade\Win11\ServiceUI.exe" -ArgumentList '-process:explorer.exe', '"C:\ProgramData\TRC-Win11Upgrade\Win11\Windows11InstallationAssistant.exe"', '/quietinstall', '/skipeula', '/auto', 'upgrade'
} else {
    Start-Process "C:\ProgramData\TRC-Win11Upgrade\Win11\Windows11InstallationAssistant.exe" -ArgumentList '/quietinstall', '/skipeula', '/auto', 'upgrade'
}
 

My Computer My Computer

At a glance

W11
OS
W11
Computer type
Laptop
Manufacturer/Model
HP
I created an account just so I could post this. Push this script to deploy Windows11InstallationAssistant.exe remotely.

It's runnign one command if a user is logged in ($explorer is true) and another command if no one's logged in.

I can't find the site where I came across this, but serviceUI is the magic here. It's a microsoft tool - not quite sure where you get it from but it's out there. I'll update this if I find the missing info.

The result will be, for a logged on user, that the GUI will show up when the install completes and is showing the 30 minute notice to reboot.
Welcome to the forum and thanks for sharing
 

My Computers My Computers

  • At a glance

    Windows 11 Pro - Windows 7 HP 64 - Lubuntui5 6600K - 800MHz to 4400MHz4+4G GSkill DDR4 3000IG - Intel 530
    OS
    Windows 11 Pro - Windows 7 HP 64 - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 256G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • At a glance

    Windows 11 Proi7-4500U 800- 3000MHz(4+4)G DDR3 1600IG intel 4400 + NVIDIA GeForce GT 745M
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
serviceUI is the magic here. It's a microsoft tool - not quite sure where you get it from but it's out there.
If I remember correctly, ServiceUI comes from MDT.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H212th Gen Core i7-1260P64 GB Micron PC4-25600Intel Iris Xe Graphics
OS
Windows 11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Intel NUC12WSHi7
CPU
12th Gen Core i7-1260P
Motherboard
NUC12WSBi7
Memory
64 GB Micron PC4-25600
Graphics Card(s)
Intel Iris Xe Graphics
Sound Card
on-board Realtek HD Audio
Monitor(s) Displays
Dell U3219Q
Screen Resolution
3840 x 2160
Hard Drives
Samsung SSD 990 PRO 1TB
Crucial MX500 2 TB
Antivirus
Microsoft Defender
Back
Top Bottom