ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Windows 10 Updates - Trigger "Update and Restart"

    IT Discussion
    windows update powershell cli windows 10 windows 10 upgrade windows
    3
    11
    5.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wrx7mW
      wrx7m
      last edited by

      I have been using PSWindowsUpdate for several months now, and it is great. The only exception being that if you install a feature update (1703 to 1809, or 1809 to 1903, etc), it requires the end-user or, in this case, me, to connect to the UI of the client computer and select the "Update and Restart" option. A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

      I have tried this, as per a recent technet forum post-

      Start-Process -FilePath 'C:\$WINDOWS.~BT\Sources\SetupHost.exe' -WorkingDirectory 'C:\$WINDOWS.~BT\Sources' -ArgumentList '/finalize /update'
      

      It doesn't give an error, but the system I ran it on, doesn't do anything. Has anyone come across a command that will actually force the update and restart option?

      IRJI 1 Reply Last reply Reply Quote 3
      • black3dynamiteB
        black3dynamite
        last edited by black3dynamite

        https://www.urtech.ca/2018/11/solved-easily-script-windows-10-to-download-install-and-restart-for-windows-updates/

        USOCLIENT Documentation & Switches
        https://www.urtech.ca/2018/11/usoclient-documentation-switches/

        https://omgdebugging.com/2017/10/09/command-line-equivalent-of-wuauclt-in-windows-10-windows-server-2016/

        wrx7mW 1 Reply Last reply Reply Quote 1
        • wrx7mW
          wrx7m @black3dynamite
          last edited by

          @black3dynamite said in Windows 10 Updates - Trigger "Update and Restart":

          https://www.urtech.ca/2018/11/solved-easily-script-windows-10-to-download-install-and-restart-for-windows-updates/

          USOCLIENT Documentation & Switches
          https://www.urtech.ca/2018/11/usoclient-documentation-switches/

          https://omgdebugging.com/2017/10/09/command-line-equivalent-of-wuauclt-in-windows-10-windows-server-2016/

          Thanks. I will check these out.

          1 Reply Last reply Reply Quote 0
          • wrx7mW
            wrx7m
            last edited by

            Looks like this might work.

            USOClient.exe RestartDevice
            

            After doing some digging into the UOSClient, it looks like the restartdevice switch only work for rebooting for a feature update. I have one device that I have that is still pending a reboot to update from 1809 to 1903. I will try it out if the user doesn't beat me to it.

            1 Reply Last reply Reply Quote 0
            • IRJI
              IRJ @wrx7m
              last edited by

              @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

              A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

              This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

              wrx7mW 1 Reply Last reply Reply Quote 0
              • wrx7mW
                wrx7m @IRJ
                last edited by

                @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

                This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

                Well, at least with Win 7, a standard reboot applies updates. At least, I think it does. The main difference between Win 7 and 10, is that they have switched to the osoclient.exe to manage the updates.

                IRJI 2 Replies Last reply Reply Quote 0
                • IRJI
                  IRJ @wrx7m
                  last edited by

                  @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                  @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                  @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                  A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

                  This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

                  Well, at least with Win 7, a standard reboot applies updates. At least, I think it does. The main difference between Win 7 and 10, is that they have switched to the osoclient.exe to manage the updates.

                  I'm pretty sure server 2008 and onward had the issue. I don't remember dealing with it on workstations

                  wrx7mW 1 Reply Last reply Reply Quote 0
                  • wrx7mW
                    wrx7m @IRJ
                    last edited by

                    @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                    @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                    @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                    @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                    A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

                    This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

                    Well, at least with Win 7, a standard reboot applies updates. At least, I think it does. The main difference between Win 7 and 10, is that they have switched to the osoclient.exe to manage the updates.

                    I'm pretty sure server 2008 and onward had the issue. I don't remember dealing with it on workstations

                    I still have a 2008 R2 box and can test it on the next go 'round. I won't have it much longer, as I am dumping it prior to EOS.

                    IRJI wrx7mW 2 Replies Last reply Reply Quote 0
                    • IRJI
                      IRJ @wrx7m
                      last edited by

                      @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                      @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                      @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                      @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                      @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                      A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

                      This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

                      Well, at least with Win 7, a standard reboot applies updates. At least, I think it does. The main difference between Win 7 and 10, is that they have switched to the osoclient.exe to manage the updates.

                      I'm pretty sure server 2008 and onward had the issue. I don't remember dealing with it on workstations

                      I still have a 2008 R2 box and can test it on the next go 'round. I won't have it much longer, as I am dumping it prior to EOS.

                      https://mangolassi.it/topic/1005/i-need-to-issue-the-update-and-restart-command-not-just-restart

                      1 Reply Last reply Reply Quote 0
                      • IRJI
                        IRJ @wrx7m
                        last edited by

                        @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                        @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                        @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                        A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

                        This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

                        Well, at least with Win 7, a standard reboot applies updates. At least, I think it does. The main difference between Win 7 and 10, is that they have switched to the osoclient.exe to manage the updates.

                        It seemed like it was an issue on 2008 servers and someone mentioned upgrading to windows 8 to fix it. I think it has always been issue.

                        1 Reply Last reply Reply Quote 0
                        • wrx7mW
                          wrx7m @wrx7m
                          last edited by

                          @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                          @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                          @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                          @IRJ said in Windows 10 Updates - Trigger "Update and Restart":

                          @wrx7m said in Windows 10 Updates - Trigger "Update and Restart":

                          A simple restart command doesn't perform the update step, just the restart, so the update doesn't get applied.

                          This has been an issue for a very long time with windows. I am surprised it hasn't been fixed yet. It's really annoying

                          Well, at least with Win 7, a standard reboot applies updates. At least, I think it does. The main difference between Win 7 and 10, is that they have switched to the osoclient.exe to manage the updates.

                          I'm pretty sure server 2008 and onward had the issue. I don't remember dealing with it on workstations

                          I still have a 2008 R2 box and can test it on the next go 'round. I won't have it much longer, as I am dumping it prior to EOS.

                          LOL - Didn't make this cutoff. Next week, hopefully.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post