0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

wsususcn2.cabをDLしてくれるbat

Posted at
wsusscn2AutoDL.bat
@echo off
REM #================================#
REM  Filename:wsusscn2AutoDL bat
REM  date:2024.02.22
REM  created by Kairi
REM #================================#

set SetDate=%date:/=%
set DLURL=https://catalog.s.download.windowsupdate.com/microsoftupdate/v6/wsusscan/wsusscn2.cab
set DLPath=C:\WinUpdate\wsusscn2.cab 

if exist %DLPath% (goto TRUE) else (goto FALSE)

REM ファイルの有無を確認する
:TRUE
echo ファイル有り
dir /B %DLPath%

ren %DLPath% wsusscn2_%SetDate%
bitsadmin /transfer download %DLURL% %DLPath%

timeout /t 10 > nul
goto END

:FALSE
echo ファイル無し

bitsadmin /transfer download %DLURL% %DLPath%

timeout /t 10 > nul
goto END

タスクスケジューラに仕込めば決まった日時でDLしてくれると思う

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?