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

    Updating Windows from the Command Line

    IT Discussion
    windows server 2012 r2 windows server 2012 windows 8 windows 8.1 windows updates sam windows administration
    7
    16
    2130
    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.
    • scottalanmiller
      scottalanmiller last edited by

      Keeping a system up to date is very important and doing so from the command line can be one of the easiest ways to do this on Windows.

      Updating a Windows system, server or desktop, can be as simple as running this command as an administrator:

      wuauclt.exe /detectnow /updatenow
      

      If you only want to look for the latest updates without applying them, you can just run:

      wuauclt.exe /detectnow
      
      Lakshmana nadnerB 2 Replies Last reply Reply Quote 4
      • Lakshmana
        Lakshmana @scottalanmiller last edited by

        @scottalanmiller I tried this command in Windows 10 no reply

        scottalanmiller 1 Reply Last reply Reply Quote 0
        • scottalanmiller
          scottalanmiller @Lakshmana last edited by

          @Lakshmana said in Updating Windows from the Command Line:

          @scottalanmiller I tried this command in Windows 10 no reply

          It should be silent.

          thwr 1 Reply Last reply Reply Quote 3
          • thwr
            thwr @scottalanmiller last edited by

            @scottalanmiller @Lakshmana Absolutely silent. No output at all. There are other ways to monitor the actual behavior (Windows event log, WSUS, ...)

            1 Reply Last reply Reply Quote 0
            • IRJ
              IRJ last edited by

              It would be a nightmare to do this on a medium to large size network without WSUS control. It is a good command for updating a pc here or there.

              thwr 1 Reply Last reply Reply Quote 2
              • thwr
                thwr @IRJ last edited by thwr

                @IRJ said in Updating Windows from the Command Line:

                It would be a nightmare to do this on a medium to large size network without WSUS control. It is a good command for updating a pc here or there.

                You will most probably have some means of deploying updates in larger environments, like WSUS or something bigger like SCCM.

                IRJ 1 Reply Last reply Reply Quote 1
                • IRJ
                  IRJ @thwr last edited by

                  @thwr said in Updating Windows from the Command Line:

                  @IRJ said in Updating Windows from the Command Line:

                  It would be a nightmare to do this on a medium to large size network without WSUS control. It is a good command for updating a pc here or there.

                  You will most probably have some means of deploying updates in larger environments, like WSUS or something bigger like SCCM.

                  Yeah sir. I was just adding that comment in case a rookie admin sees this post and tries to send the command out to the whole network.

                  thwr 2 Replies Last reply Reply Quote 1
                  • thwr
                    thwr @IRJ last edited by

                    @IRJ said in Updating Windows from the Command Line:

                    @thwr said in Updating Windows from the Command Line:

                    @IRJ said in Updating Windows from the Command Line:

                    It would be a nightmare to do this on a medium to large size network without WSUS control. It is a good command for updating a pc here or there.

                    You will most probably have some means of deploying updates in larger environments, like WSUS or something bigger like SCCM.

                    Yeah sir. I was just adding that comment in case a rookie admin sees this post and tries to send the command out to the whole network.

                    🙂

                    1 Reply Last reply Reply Quote 0
                    • scottalanmiller
                      scottalanmiller last edited by

                      It's just for those cases where you need to push the updates before getting started with something 🙂

                      IRJ 1 Reply Last reply Reply Quote 1
                      • IRJ
                        IRJ @scottalanmiller last edited by IRJ

                        @scottalanmiller said in Updating Windows from the Command Line:

                        It's just for those cases where you need to push the updates before getting started with something 🙂

                        I dont want to see a thread saying I pushed this out to 500 PCs in the middle of the day and my network is toast....lol

                        😂

                        1 Reply Last reply Reply Quote 2
                        • thwr
                          thwr @IRJ last edited by thwr

                          @IRJ said in Updating Windows from the Command Line:

                          @thwr said in Updating Windows from the Command Line:

                          @IRJ said in Updating Windows from the Command Line:

                          It would be a nightmare to do this on a medium to large size network without WSUS control. It is a good command for updating a pc here or there.

                          You will most probably have some means of deploying updates in larger environments, like WSUS or something bigger like SCCM.

                          Yeah sir. I was just adding that comment in case a rookie admin sees this post and tries to send the command out to the whole network.

                          You mean like

                          Invoke-Command -ComputerName (Get-ADComputer -filter * | Select -Expand Name) -Script { wuactl.... }
                          

                          (DON'T TRY THIS AT HOME WORK)

                          1 Reply Last reply Reply Quote 3
                          • thwr
                            thwr last edited by

                            http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html

                            1 Reply Last reply Reply Quote 3
                            • StrongBad
                              StrongBad last edited by

                              A little network traffic is good for keeping users on their toes. Remind them that you are doing things.

                              1 Reply Last reply Reply Quote 2
                              • alex.olynyk
                                alex.olynyk last edited by

                                its nice to see the windows administration tag, good stuff coming in

                                scottalanmiller 1 Reply Last reply Reply Quote 2
                                • scottalanmiller
                                  scottalanmiller @alex.olynyk last edited by

                                  @alex.olynyk said in Updating Windows from the Command Line:

                                  its nice to see the windows administration tag, good stuff coming in

                                  No official page yet, but getting some little nuggets ready as I am working towards some stuff. 😉

                                  1 Reply Last reply Reply Quote 0
                                  • nadnerB
                                    nadnerB @scottalanmiller last edited by nadnerB

                                    @scottalanmiller said in Updating Windows from the Command Line:

                                    Keeping a system up to date is very important and doing so from the command line can be one of the easiest ways to do this on Windows.

                                    Updating a Windows system, server or desktop, can be as simple as running this command as an administrator:

                                    wuauclt.exe /detectnow /updatenow
                                    

                                    If you only want to look for the latest updates without applying them, you can just run:

                                    wuauclt.exe /detectnow
                                    

                                    Also:
                                    wuauclt.exe /a /detectnow

                                    (/ResetAuthorization)

                                    http://ss64.com/nt/wuauclt.html

                                    1 Reply Last reply Reply Quote 2
                                    • First post
                                      Last post