How to install Windows patches with batch one-click

Source: Internet
Author: User

Everyone may have to reload the operating system. Can be installed every time after the operating system to spend the longest time is to download patches installed patches, often download patches installed patches have spent most of the day, after Vista, Microsoft released patches are mostly MSU, of course, there are also a small number of the previous EXE. The following is a quick way to install a system patch for both of these extensions.

Download the latest system patches with software and save them in the Spacks folder, create a new text file in the folder, and enter the following code

@Echo off

Title Install Windows Update Pack

Echo is installing Windows system patches, please wait ...

For%%i in (*.exe) do%%i/passive/norestart/nobackup

For%%f in (*.MSU) do call:update%%f

Shutdown.exe-r-T 19

Exit

: Update

Echo Installation Complete

Start/wait%1/quiet/norestart

Goto:eof

Exit

Select Save As Spack.bat (note batch file format, in the Save As dialog box to save the type selected as "All Files", the file name is written in complete Spack.bat, save), the file and all patch files in the same directory, double-click the run on OK. When the installation is complete, the window closes automatically.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.