Can I get more information on what Windows Update is doing?












78















It often happens that I have to watch this screen for minutes:



enter image description here



I have no clue what's happening in the back. And I'm also not interested in watching the WindowsUpdate.log for changes.



I would love to know if there's a way that gives more feedback. Preferably something I can invoke from the command line (like apt-get).










share|improve this question

























  • This might apply when Get Windows 10 hijacks the update process. See How to install security updates after “Upgrade to Windows 10” hijacks Windows Update?

    – jww
    Oct 16 '15 at 23:36
















78















It often happens that I have to watch this screen for minutes:



enter image description here



I have no clue what's happening in the back. And I'm also not interested in watching the WindowsUpdate.log for changes.



I would love to know if there's a way that gives more feedback. Preferably something I can invoke from the command line (like apt-get).










share|improve this question

























  • This might apply when Get Windows 10 hijacks the update process. See How to install security updates after “Upgrade to Windows 10” hijacks Windows Update?

    – jww
    Oct 16 '15 at 23:36














78












78








78


38






It often happens that I have to watch this screen for minutes:



enter image description here



I have no clue what's happening in the back. And I'm also not interested in watching the WindowsUpdate.log for changes.



I would love to know if there's a way that gives more feedback. Preferably something I can invoke from the command line (like apt-get).










share|improve this question
















It often happens that I have to watch this screen for minutes:



enter image description here



I have no clue what's happening in the back. And I'm also not interested in watching the WindowsUpdate.log for changes.



I would love to know if there's a way that gives more feedback. Preferably something I can invoke from the command line (like apt-get).







windows-7 command-line windows-update






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 12:55









Richard

3,41042656




3,41042656










asked Aug 16 '12 at 14:26









Der HochstaplerDer Hochstapler

68.1k50230286




68.1k50230286













  • This might apply when Get Windows 10 hijacks the update process. See How to install security updates after “Upgrade to Windows 10” hijacks Windows Update?

    – jww
    Oct 16 '15 at 23:36



















  • This might apply when Get Windows 10 hijacks the update process. See How to install security updates after “Upgrade to Windows 10” hijacks Windows Update?

    – jww
    Oct 16 '15 at 23:36

















This might apply when Get Windows 10 hijacks the update process. See How to install security updates after “Upgrade to Windows 10” hijacks Windows Update?

– jww
Oct 16 '15 at 23:36





This might apply when Get Windows 10 hijacks the update process. See How to install security updates after “Upgrade to Windows 10” hijacks Windows Update?

– jww
Oct 16 '15 at 23:36










8 Answers
8






active

oldest

votes


















53














In Windows 10, you can use the PSWindowsUpdate PowerShell module.



> Install-Module PSWindowsUpdate
> Get-WindowsUpdate
> Install-WindowsUpdate


enter image description here






share|improve this answer





















  • 2





    Works in Windows 7 too. :)

    – Charles Burge
    Mar 8 '17 at 1:38






  • 17





    Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

    – Whome
    Jun 18 '17 at 18:42











  • I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

    – BaseZen
    Mar 28 '18 at 3:33











  • This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

    – not2qubit
    Nov 18 '18 at 18:19













  • Didn't work in old PS 5+ but works now in PWSH 6.1.1.

    – not2qubit
    Jan 28 at 9:16



















69














You can invoke Windows Update from command line using wuauclt.exe utility located in %windir%system32 folder.



To check for updates,



wuauclt.exe /detectnow


To check and update,



wuauclt.exe /detectnow /updatenow


This will not work if you have set "Never check for updates" in Windows Update settings. Also probably automatic updates must be enabled for '/updatenow' switch to work (install updates).



In versions of Windows prior to Windows 10, you can also start the GUI for Windows Update by entering following command (located in %windir%system32 folder):



wuapp.exe


This only opens the update application and checks available updates, it does not install them. Also if you have set "Never check for updates" in Windows Update settings, this does not checks for updates too, you will have to click the "Check for updates" button.






share|improve this answer





















  • 9





    On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

    – wjandrea
    Feb 14 '17 at 19:04











  • Same on W8.1...no output

    – not2qubit
    Nov 18 '18 at 18:22



















33














I found some great suggestions when looking into How to to Install Windows Updates on Windows Server 2008 R2 Core.



One suggestion I really liked, is the WUA_SearchDownloadInstall.vbs script.



Available Updates being listed



enter image description here



Update Installation



enter image description here






share|improve this answer





















  • 3





    Another option would be WSUS Offline.

    – Der Hochstapler
    Mar 18 '13 at 22:07











  • Great! Just need to update script to disable prompts, or add command line switches.

    – MarcusUA
    May 17 '17 at 12:26











  • How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

    – YumYumYum
    Jun 5 '18 at 12:25



















11














You can use wusa.exe which is part of Windows 7.



I wanted to remove the Windows 10 Update icon from the taskbar, so I wrote this AutoHotkey script which invokes wusa.



wusa := "c:windowssystem32wusa.exe"
runwait %wusa% /uninstall /kb:2952664 /norestart
runwait %wusa% /uninstall /kb:3021917 /norestart
runwait, %wusa% /uninstall /kb:3035583 /norestart
msgbox, okay, all done!`rDon't forget to -hide- the updates now.


So you can use wusa.exe to manage Windows updates and install .msu files.



Here are the commandline parameters for wusa: https://support.microsoft.com/en-us/kb/262841



wusa.exe /uninstall /kb:123456 /quiet /norestart
wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart


This page has a collection of other ways to manage updates from the commandline.



This page explains how wusa.exe works.



To see what updates are installed (via commandline):



systeminfo | find ": KB"





share|improve this answer





















  • 2





    Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

    – jww
    Oct 16 '15 at 23:38













  • There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

    – bgmCoder
    Oct 19 '15 at 14:14



















9














I'm using WuInstall. It is a command line tool for managing Windows Updates. You have many great options like displaying the installation progress, to specify if you want a reboot and when, and logfiles are available for every process.
Regards






share|improve this answer
























  • But its not FREE?????

    – YumYumYum
    Jun 5 '18 at 12:27



















3














Windows 10, and Windows Server 2016 or above, use USOClient.exe to scan, download, and install updates.






  • StartScan Used To Start Scan


  • StartDownload Used to Start Download of Patches


  • StartInstall Used to Install Downloaded Patches


  • RefreshSettings Refresh Settings if any changes were made


  • StartInteractiveScan May ask for user input and/or open dialogues to show progress or report errors


  • RestartDevice Restart device to finish installation of updates


  • ScanInstallWait Combined Scan Download Install


  • ResumeUpdate Resume Update Installation On Boot




Command Line Equivalent of wuauclt in Windows 10 / Windows Server 2016






share|improve this answer

































    1














    Based on the answer from kizzx2 I created two one liners for the command prompt.



    Run the following code from an elevated command line.



    Installation of the update module:



    Powershell.exe -ExecutionPolicy Unrestricted -command "Install-Module PSWindowsUpdate -force"


    Performing update from command line:



    Powershell.exe -ExecutionPolicy Unrestricted -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate; Install-WindowsUpdate"


    Furthermore, you can add the options -AcceptAll and -AutoReboot to the Install-WindowsUpdate command.






    share|improve this answer

































      0














      The easiest and most reliable way I found is to call the COM object from PowerShell.



      $autoUpdate = New-Object -ComObject Microsoft.Update.AutoUpdate
      $autoUpdate.DetectNow()


      The other methods of the object seem to do nothing on Windows 10. See also:
      https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iautomaticupdates



      If you don't want to use PowerShell you can run



      C:WindowsSystem32UsoClient.exe StartScan


      directly from the command line.






      share|improve this answer

























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "3"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f462425%2fcan-i-get-more-information-on-what-windows-update-is-doing%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        8 Answers
        8






        active

        oldest

        votes








        8 Answers
        8






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        53














        In Windows 10, you can use the PSWindowsUpdate PowerShell module.



        > Install-Module PSWindowsUpdate
        > Get-WindowsUpdate
        > Install-WindowsUpdate


        enter image description here






        share|improve this answer





















        • 2





          Works in Windows 7 too. :)

          – Charles Burge
          Mar 8 '17 at 1:38






        • 17





          Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

          – Whome
          Jun 18 '17 at 18:42











        • I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

          – BaseZen
          Mar 28 '18 at 3:33











        • This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

          – not2qubit
          Nov 18 '18 at 18:19













        • Didn't work in old PS 5+ but works now in PWSH 6.1.1.

          – not2qubit
          Jan 28 at 9:16
















        53














        In Windows 10, you can use the PSWindowsUpdate PowerShell module.



        > Install-Module PSWindowsUpdate
        > Get-WindowsUpdate
        > Install-WindowsUpdate


        enter image description here






        share|improve this answer





















        • 2





          Works in Windows 7 too. :)

          – Charles Burge
          Mar 8 '17 at 1:38






        • 17





          Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

          – Whome
          Jun 18 '17 at 18:42











        • I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

          – BaseZen
          Mar 28 '18 at 3:33











        • This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

          – not2qubit
          Nov 18 '18 at 18:19













        • Didn't work in old PS 5+ but works now in PWSH 6.1.1.

          – not2qubit
          Jan 28 at 9:16














        53












        53








        53







        In Windows 10, you can use the PSWindowsUpdate PowerShell module.



        > Install-Module PSWindowsUpdate
        > Get-WindowsUpdate
        > Install-WindowsUpdate


        enter image description here






        share|improve this answer















        In Windows 10, you can use the PSWindowsUpdate PowerShell module.



        > Install-Module PSWindowsUpdate
        > Get-WindowsUpdate
        > Install-WindowsUpdate


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 3 '17 at 12:38









        Der Hochstapler

        68.1k50230286




        68.1k50230286










        answered Mar 8 '17 at 1:31









        kizzx2kizzx2

        871108




        871108








        • 2





          Works in Windows 7 too. :)

          – Charles Burge
          Mar 8 '17 at 1:38






        • 17





          Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

          – Whome
          Jun 18 '17 at 18:42











        • I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

          – BaseZen
          Mar 28 '18 at 3:33











        • This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

          – not2qubit
          Nov 18 '18 at 18:19













        • Didn't work in old PS 5+ but works now in PWSH 6.1.1.

          – not2qubit
          Jan 28 at 9:16














        • 2





          Works in Windows 7 too. :)

          – Charles Burge
          Mar 8 '17 at 1:38






        • 17





          Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

          – Whome
          Jun 18 '17 at 18:42











        • I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

          – BaseZen
          Mar 28 '18 at 3:33











        • This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

          – not2qubit
          Nov 18 '18 at 18:19













        • Didn't work in old PS 5+ but works now in PWSH 6.1.1.

          – not2qubit
          Jan 28 at 9:16








        2




        2





        Works in Windows 7 too. :)

        – Charles Burge
        Mar 8 '17 at 1:38





        Works in Windows 7 too. :)

        – Charles Burge
        Mar 8 '17 at 1:38




        17




        17





        Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

        – Whome
        Jun 18 '17 at 18:42





        Win10 restricted due to a script policy. Start ps-console as admin Powershell.exe -ExecutionPolicy Unrestricted then run given commands. Probably need to run Import-Module PSWindowsUpdate before Get-WindowsUpdate. This policy applies to this PS session only.

        – Whome
        Jun 18 '17 at 18:42













        I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

        – BaseZen
        Mar 28 '18 at 3:33





        I found the more reasonably restrictive Set-ExecutionPolicy -ExecutionPolicy RemoteSigned which is also persistent (going into the Local Poilcy object) docs.microsoft.com/en-us/powershell/module/…

        – BaseZen
        Mar 28 '18 at 3:33













        This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

        – not2qubit
        Nov 18 '18 at 18:19







        This is weird. On Win8.1 I get: Install-Module : The term 'Install-Module' is not recognized... and Get-WindowsUpdate : The term 'Get-WUList' is not recognized....

        – not2qubit
        Nov 18 '18 at 18:19















        Didn't work in old PS 5+ but works now in PWSH 6.1.1.

        – not2qubit
        Jan 28 at 9:16





        Didn't work in old PS 5+ but works now in PWSH 6.1.1.

        – not2qubit
        Jan 28 at 9:16













        69














        You can invoke Windows Update from command line using wuauclt.exe utility located in %windir%system32 folder.



        To check for updates,



        wuauclt.exe /detectnow


        To check and update,



        wuauclt.exe /detectnow /updatenow


        This will not work if you have set "Never check for updates" in Windows Update settings. Also probably automatic updates must be enabled for '/updatenow' switch to work (install updates).



        In versions of Windows prior to Windows 10, you can also start the GUI for Windows Update by entering following command (located in %windir%system32 folder):



        wuapp.exe


        This only opens the update application and checks available updates, it does not install them. Also if you have set "Never check for updates" in Windows Update settings, this does not checks for updates too, you will have to click the "Check for updates" button.






        share|improve this answer





















        • 9





          On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

          – wjandrea
          Feb 14 '17 at 19:04











        • Same on W8.1...no output

          – not2qubit
          Nov 18 '18 at 18:22
















        69














        You can invoke Windows Update from command line using wuauclt.exe utility located in %windir%system32 folder.



        To check for updates,



        wuauclt.exe /detectnow


        To check and update,



        wuauclt.exe /detectnow /updatenow


        This will not work if you have set "Never check for updates" in Windows Update settings. Also probably automatic updates must be enabled for '/updatenow' switch to work (install updates).



        In versions of Windows prior to Windows 10, you can also start the GUI for Windows Update by entering following command (located in %windir%system32 folder):



        wuapp.exe


        This only opens the update application and checks available updates, it does not install them. Also if you have set "Never check for updates" in Windows Update settings, this does not checks for updates too, you will have to click the "Check for updates" button.






        share|improve this answer





















        • 9





          On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

          – wjandrea
          Feb 14 '17 at 19:04











        • Same on W8.1...no output

          – not2qubit
          Nov 18 '18 at 18:22














        69












        69








        69







        You can invoke Windows Update from command line using wuauclt.exe utility located in %windir%system32 folder.



        To check for updates,



        wuauclt.exe /detectnow


        To check and update,



        wuauclt.exe /detectnow /updatenow


        This will not work if you have set "Never check for updates" in Windows Update settings. Also probably automatic updates must be enabled for '/updatenow' switch to work (install updates).



        In versions of Windows prior to Windows 10, you can also start the GUI for Windows Update by entering following command (located in %windir%system32 folder):



        wuapp.exe


        This only opens the update application and checks available updates, it does not install them. Also if you have set "Never check for updates" in Windows Update settings, this does not checks for updates too, you will have to click the "Check for updates" button.






        share|improve this answer















        You can invoke Windows Update from command line using wuauclt.exe utility located in %windir%system32 folder.



        To check for updates,



        wuauclt.exe /detectnow


        To check and update,



        wuauclt.exe /detectnow /updatenow


        This will not work if you have set "Never check for updates" in Windows Update settings. Also probably automatic updates must be enabled for '/updatenow' switch to work (install updates).



        In versions of Windows prior to Windows 10, you can also start the GUI for Windows Update by entering following command (located in %windir%system32 folder):



        wuapp.exe


        This only opens the update application and checks available updates, it does not install them. Also if you have set "Never check for updates" in Windows Update settings, this does not checks for updates too, you will have to click the "Check for updates" button.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 27 '16 at 3:49









        Warren Rumak

        2,4171105




        2,4171105










        answered Dec 21 '13 at 1:47









        ePanditePandit

        800156




        800156








        • 9





          On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

          – wjandrea
          Feb 14 '17 at 19:04











        • Same on W8.1...no output

          – not2qubit
          Nov 18 '18 at 18:22














        • 9





          On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

          – wjandrea
          Feb 14 '17 at 19:04











        • Same on W8.1...no output

          – not2qubit
          Nov 18 '18 at 18:22








        9




        9





        On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

        – wjandrea
        Feb 14 '17 at 19:04





        On Windows 7, wuauclt.exe doesn't seem to print any output to cmd.

        – wjandrea
        Feb 14 '17 at 19:04













        Same on W8.1...no output

        – not2qubit
        Nov 18 '18 at 18:22





        Same on W8.1...no output

        – not2qubit
        Nov 18 '18 at 18:22











        33














        I found some great suggestions when looking into How to to Install Windows Updates on Windows Server 2008 R2 Core.



        One suggestion I really liked, is the WUA_SearchDownloadInstall.vbs script.



        Available Updates being listed



        enter image description here



        Update Installation



        enter image description here






        share|improve this answer





















        • 3





          Another option would be WSUS Offline.

          – Der Hochstapler
          Mar 18 '13 at 22:07











        • Great! Just need to update script to disable prompts, or add command line switches.

          – MarcusUA
          May 17 '17 at 12:26











        • How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

          – YumYumYum
          Jun 5 '18 at 12:25
















        33














        I found some great suggestions when looking into How to to Install Windows Updates on Windows Server 2008 R2 Core.



        One suggestion I really liked, is the WUA_SearchDownloadInstall.vbs script.



        Available Updates being listed



        enter image description here



        Update Installation



        enter image description here






        share|improve this answer





















        • 3





          Another option would be WSUS Offline.

          – Der Hochstapler
          Mar 18 '13 at 22:07











        • Great! Just need to update script to disable prompts, or add command line switches.

          – MarcusUA
          May 17 '17 at 12:26











        • How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

          – YumYumYum
          Jun 5 '18 at 12:25














        33












        33








        33







        I found some great suggestions when looking into How to to Install Windows Updates on Windows Server 2008 R2 Core.



        One suggestion I really liked, is the WUA_SearchDownloadInstall.vbs script.



        Available Updates being listed



        enter image description here



        Update Installation



        enter image description here






        share|improve this answer















        I found some great suggestions when looking into How to to Install Windows Updates on Windows Server 2008 R2 Core.



        One suggestion I really liked, is the WUA_SearchDownloadInstall.vbs script.



        Available Updates being listed



        enter image description here



        Update Installation



        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 16 '12 at 14:36

























        answered Aug 16 '12 at 14:26









        Der HochstaplerDer Hochstapler

        68.1k50230286




        68.1k50230286








        • 3





          Another option would be WSUS Offline.

          – Der Hochstapler
          Mar 18 '13 at 22:07











        • Great! Just need to update script to disable prompts, or add command line switches.

          – MarcusUA
          May 17 '17 at 12:26











        • How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

          – YumYumYum
          Jun 5 '18 at 12:25














        • 3





          Another option would be WSUS Offline.

          – Der Hochstapler
          Mar 18 '13 at 22:07











        • Great! Just need to update script to disable prompts, or add command line switches.

          – MarcusUA
          May 17 '17 at 12:26











        • How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

          – YumYumYum
          Jun 5 '18 at 12:25








        3




        3





        Another option would be WSUS Offline.

        – Der Hochstapler
        Mar 18 '13 at 22:07





        Another option would be WSUS Offline.

        – Der Hochstapler
        Mar 18 '13 at 22:07













        Great! Just need to update script to disable prompts, or add command line switches.

        – MarcusUA
        May 17 '17 at 12:26





        Great! Just need to update script to disable prompts, or add command line switches.

        – MarcusUA
        May 17 '17 at 12:26













        How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

        – YumYumYum
        Jun 5 '18 at 12:25





        How to tell in 2018 (Windows 10 home) install updates but never in 8AM till 6PM?

        – YumYumYum
        Jun 5 '18 at 12:25











        11














        You can use wusa.exe which is part of Windows 7.



        I wanted to remove the Windows 10 Update icon from the taskbar, so I wrote this AutoHotkey script which invokes wusa.



        wusa := "c:windowssystem32wusa.exe"
        runwait %wusa% /uninstall /kb:2952664 /norestart
        runwait %wusa% /uninstall /kb:3021917 /norestart
        runwait, %wusa% /uninstall /kb:3035583 /norestart
        msgbox, okay, all done!`rDon't forget to -hide- the updates now.


        So you can use wusa.exe to manage Windows updates and install .msu files.



        Here are the commandline parameters for wusa: https://support.microsoft.com/en-us/kb/262841



        wusa.exe /uninstall /kb:123456 /quiet /norestart
        wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart


        This page has a collection of other ways to manage updates from the commandline.



        This page explains how wusa.exe works.



        To see what updates are installed (via commandline):



        systeminfo | find ": KB"





        share|improve this answer





















        • 2





          Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

          – jww
          Oct 16 '15 at 23:38













        • There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

          – bgmCoder
          Oct 19 '15 at 14:14
















        11














        You can use wusa.exe which is part of Windows 7.



        I wanted to remove the Windows 10 Update icon from the taskbar, so I wrote this AutoHotkey script which invokes wusa.



        wusa := "c:windowssystem32wusa.exe"
        runwait %wusa% /uninstall /kb:2952664 /norestart
        runwait %wusa% /uninstall /kb:3021917 /norestart
        runwait, %wusa% /uninstall /kb:3035583 /norestart
        msgbox, okay, all done!`rDon't forget to -hide- the updates now.


        So you can use wusa.exe to manage Windows updates and install .msu files.



        Here are the commandline parameters for wusa: https://support.microsoft.com/en-us/kb/262841



        wusa.exe /uninstall /kb:123456 /quiet /norestart
        wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart


        This page has a collection of other ways to manage updates from the commandline.



        This page explains how wusa.exe works.



        To see what updates are installed (via commandline):



        systeminfo | find ": KB"





        share|improve this answer





















        • 2





          Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

          – jww
          Oct 16 '15 at 23:38













        • There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

          – bgmCoder
          Oct 19 '15 at 14:14














        11












        11








        11







        You can use wusa.exe which is part of Windows 7.



        I wanted to remove the Windows 10 Update icon from the taskbar, so I wrote this AutoHotkey script which invokes wusa.



        wusa := "c:windowssystem32wusa.exe"
        runwait %wusa% /uninstall /kb:2952664 /norestart
        runwait %wusa% /uninstall /kb:3021917 /norestart
        runwait, %wusa% /uninstall /kb:3035583 /norestart
        msgbox, okay, all done!`rDon't forget to -hide- the updates now.


        So you can use wusa.exe to manage Windows updates and install .msu files.



        Here are the commandline parameters for wusa: https://support.microsoft.com/en-us/kb/262841



        wusa.exe /uninstall /kb:123456 /quiet /norestart
        wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart


        This page has a collection of other ways to manage updates from the commandline.



        This page explains how wusa.exe works.



        To see what updates are installed (via commandline):



        systeminfo | find ": KB"





        share|improve this answer















        You can use wusa.exe which is part of Windows 7.



        I wanted to remove the Windows 10 Update icon from the taskbar, so I wrote this AutoHotkey script which invokes wusa.



        wusa := "c:windowssystem32wusa.exe"
        runwait %wusa% /uninstall /kb:2952664 /norestart
        runwait %wusa% /uninstall /kb:3021917 /norestart
        runwait, %wusa% /uninstall /kb:3035583 /norestart
        msgbox, okay, all done!`rDon't forget to -hide- the updates now.


        So you can use wusa.exe to manage Windows updates and install .msu files.



        Here are the commandline parameters for wusa: https://support.microsoft.com/en-us/kb/262841



        wusa.exe /uninstall /kb:123456 /quiet /norestart
        wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart


        This page has a collection of other ways to manage updates from the commandline.



        This page explains how wusa.exe works.



        To see what updates are installed (via commandline):



        systeminfo | find ": KB"






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 5 '17 at 23:16









        Peter Mortensen

        8,376166185




        8,376166185










        answered Sep 11 '15 at 3:17









        bgmCoderbgmCoder

        1,10242347




        1,10242347








        • 2





          Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

          – jww
          Oct 16 '15 at 23:38













        • There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

          – bgmCoder
          Oct 19 '15 at 14:14














        • 2





          Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

          – jww
          Oct 16 '15 at 23:38













        • There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

          – bgmCoder
          Oct 19 '15 at 14:14








        2




        2





        Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

        – jww
        Oct 16 '15 at 23:38







        Its really sad that I am here looking at this answer because malware known as Update to Windows 10 has hijcaked the update process, and I can't install security updates.

        – jww
        Oct 16 '15 at 23:38















        There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

        – bgmCoder
        Oct 19 '15 at 14:14





        There are a number of reasons why Windows Updates might quit working, and a number of solutions, I would be happy to answer, but this is not the right topic... Just suffice to say that in the end, I wanted offline updates and ended up doing this: forums.mydigitallife.info/threads/… which works quite well!

        – bgmCoder
        Oct 19 '15 at 14:14











        9














        I'm using WuInstall. It is a command line tool for managing Windows Updates. You have many great options like displaying the installation progress, to specify if you want a reboot and when, and logfiles are available for every process.
        Regards






        share|improve this answer
























        • But its not FREE?????

          – YumYumYum
          Jun 5 '18 at 12:27
















        9














        I'm using WuInstall. It is a command line tool for managing Windows Updates. You have many great options like displaying the installation progress, to specify if you want a reboot and when, and logfiles are available for every process.
        Regards






        share|improve this answer
























        • But its not FREE?????

          – YumYumYum
          Jun 5 '18 at 12:27














        9












        9








        9







        I'm using WuInstall. It is a command line tool for managing Windows Updates. You have many great options like displaying the installation progress, to specify if you want a reboot and when, and logfiles are available for every process.
        Regards






        share|improve this answer













        I'm using WuInstall. It is a command line tool for managing Windows Updates. You have many great options like displaying the installation progress, to specify if you want a reboot and when, and logfiles are available for every process.
        Regards







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 24 '12 at 6:48









        smihi19smihi19

        911




        911













        • But its not FREE?????

          – YumYumYum
          Jun 5 '18 at 12:27



















        • But its not FREE?????

          – YumYumYum
          Jun 5 '18 at 12:27

















        But its not FREE?????

        – YumYumYum
        Jun 5 '18 at 12:27





        But its not FREE?????

        – YumYumYum
        Jun 5 '18 at 12:27











        3














        Windows 10, and Windows Server 2016 or above, use USOClient.exe to scan, download, and install updates.






        • StartScan Used To Start Scan


        • StartDownload Used to Start Download of Patches


        • StartInstall Used to Install Downloaded Patches


        • RefreshSettings Refresh Settings if any changes were made


        • StartInteractiveScan May ask for user input and/or open dialogues to show progress or report errors


        • RestartDevice Restart device to finish installation of updates


        • ScanInstallWait Combined Scan Download Install


        • ResumeUpdate Resume Update Installation On Boot




        Command Line Equivalent of wuauclt in Windows 10 / Windows Server 2016






        share|improve this answer






























          3














          Windows 10, and Windows Server 2016 or above, use USOClient.exe to scan, download, and install updates.






          • StartScan Used To Start Scan


          • StartDownload Used to Start Download of Patches


          • StartInstall Used to Install Downloaded Patches


          • RefreshSettings Refresh Settings if any changes were made


          • StartInteractiveScan May ask for user input and/or open dialogues to show progress or report errors


          • RestartDevice Restart device to finish installation of updates


          • ScanInstallWait Combined Scan Download Install


          • ResumeUpdate Resume Update Installation On Boot




          Command Line Equivalent of wuauclt in Windows 10 / Windows Server 2016






          share|improve this answer




























            3












            3








            3







            Windows 10, and Windows Server 2016 or above, use USOClient.exe to scan, download, and install updates.






            • StartScan Used To Start Scan


            • StartDownload Used to Start Download of Patches


            • StartInstall Used to Install Downloaded Patches


            • RefreshSettings Refresh Settings if any changes were made


            • StartInteractiveScan May ask for user input and/or open dialogues to show progress or report errors


            • RestartDevice Restart device to finish installation of updates


            • ScanInstallWait Combined Scan Download Install


            • ResumeUpdate Resume Update Installation On Boot




            Command Line Equivalent of wuauclt in Windows 10 / Windows Server 2016






            share|improve this answer















            Windows 10, and Windows Server 2016 or above, use USOClient.exe to scan, download, and install updates.






            • StartScan Used To Start Scan


            • StartDownload Used to Start Download of Patches


            • StartInstall Used to Install Downloaded Patches


            • RefreshSettings Refresh Settings if any changes were made


            • StartInteractiveScan May ask for user input and/or open dialogues to show progress or report errors


            • RestartDevice Restart device to finish installation of updates


            • ScanInstallWait Combined Scan Download Install


            • ResumeUpdate Resume Update Installation On Boot




            Command Line Equivalent of wuauclt in Windows 10 / Windows Server 2016







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 17 '18 at 20:27









            Ramhound

            20.9k156287




            20.9k156287










            answered Jul 19 '18 at 13:51









            Marcus ZhengMarcus Zheng

            411




            411























                1














                Based on the answer from kizzx2 I created two one liners for the command prompt.



                Run the following code from an elevated command line.



                Installation of the update module:



                Powershell.exe -ExecutionPolicy Unrestricted -command "Install-Module PSWindowsUpdate -force"


                Performing update from command line:



                Powershell.exe -ExecutionPolicy Unrestricted -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate; Install-WindowsUpdate"


                Furthermore, you can add the options -AcceptAll and -AutoReboot to the Install-WindowsUpdate command.






                share|improve this answer






























                  1














                  Based on the answer from kizzx2 I created two one liners for the command prompt.



                  Run the following code from an elevated command line.



                  Installation of the update module:



                  Powershell.exe -ExecutionPolicy Unrestricted -command "Install-Module PSWindowsUpdate -force"


                  Performing update from command line:



                  Powershell.exe -ExecutionPolicy Unrestricted -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate; Install-WindowsUpdate"


                  Furthermore, you can add the options -AcceptAll and -AutoReboot to the Install-WindowsUpdate command.






                  share|improve this answer




























                    1












                    1








                    1







                    Based on the answer from kizzx2 I created two one liners for the command prompt.



                    Run the following code from an elevated command line.



                    Installation of the update module:



                    Powershell.exe -ExecutionPolicy Unrestricted -command "Install-Module PSWindowsUpdate -force"


                    Performing update from command line:



                    Powershell.exe -ExecutionPolicy Unrestricted -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate; Install-WindowsUpdate"


                    Furthermore, you can add the options -AcceptAll and -AutoReboot to the Install-WindowsUpdate command.






                    share|improve this answer















                    Based on the answer from kizzx2 I created two one liners for the command prompt.



                    Run the following code from an elevated command line.



                    Installation of the update module:



                    Powershell.exe -ExecutionPolicy Unrestricted -command "Install-Module PSWindowsUpdate -force"


                    Performing update from command line:



                    Powershell.exe -ExecutionPolicy Unrestricted -command "Import-Module PSWindowsUpdate; Get-WindowsUpdate; Install-WindowsUpdate"


                    Furthermore, you can add the options -AcceptAll and -AutoReboot to the Install-WindowsUpdate command.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 7 at 10:11

























                    answered Jan 6 at 9:18









                    Benjamin ZiepertBenjamin Ziepert

                    813




                    813























                        0














                        The easiest and most reliable way I found is to call the COM object from PowerShell.



                        $autoUpdate = New-Object -ComObject Microsoft.Update.AutoUpdate
                        $autoUpdate.DetectNow()


                        The other methods of the object seem to do nothing on Windows 10. See also:
                        https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iautomaticupdates



                        If you don't want to use PowerShell you can run



                        C:WindowsSystem32UsoClient.exe StartScan


                        directly from the command line.






                        share|improve this answer






























                          0














                          The easiest and most reliable way I found is to call the COM object from PowerShell.



                          $autoUpdate = New-Object -ComObject Microsoft.Update.AutoUpdate
                          $autoUpdate.DetectNow()


                          The other methods of the object seem to do nothing on Windows 10. See also:
                          https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iautomaticupdates



                          If you don't want to use PowerShell you can run



                          C:WindowsSystem32UsoClient.exe StartScan


                          directly from the command line.






                          share|improve this answer




























                            0












                            0








                            0







                            The easiest and most reliable way I found is to call the COM object from PowerShell.



                            $autoUpdate = New-Object -ComObject Microsoft.Update.AutoUpdate
                            $autoUpdate.DetectNow()


                            The other methods of the object seem to do nothing on Windows 10. See also:
                            https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iautomaticupdates



                            If you don't want to use PowerShell you can run



                            C:WindowsSystem32UsoClient.exe StartScan


                            directly from the command line.






                            share|improve this answer















                            The easiest and most reliable way I found is to call the COM object from PowerShell.



                            $autoUpdate = New-Object -ComObject Microsoft.Update.AutoUpdate
                            $autoUpdate.DetectNow()


                            The other methods of the object seem to do nothing on Windows 10. See also:
                            https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iautomaticupdates



                            If you don't want to use PowerShell you can run



                            C:WindowsSystem32UsoClient.exe StartScan


                            directly from the command line.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Feb 7 at 11:54

























                            answered Feb 7 at 11:49









                            oleschrioleschri

                            1,055816




                            1,055816






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Super User!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f462425%2fcan-i-get-more-information-on-what-windows-update-is-doing%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                Eduardo VII do Reino Unido