Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of installing windows system patches using windows batch processing

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The following code detects both patch formats:

@ echo off

Title install windows update pack

Set local enable delayed expansion

Set nasty 1

Echo is installing the windows system patch. Please wait a moment.

For I in (.exe) do (

Echo is installing the first! n! Patch I

I / passive / norestart / nobackup

Echo No.! n! Patch I installed successfully

Set / a naughty 1

)

For% f in (.msu) do (

Echo is installing the first! n! Patch% f

Call: update% f

Echo No.! n! Patch f installed successfully

Set / a naughty 1

)

Shutdown.exe-r-t 19

Goto: eof

: update

Echo installation completed

Start / wait 1 / quiet / norestart

Just store this file in the same directory as the patch

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report