7 lines
363 B
Batchfile
Executable File
7 lines
363 B
Batchfile
Executable File
pushd %~dp0
|
|
if not exist "C:\Scripts" mkdir "C:\Scripts"
|
|
copy /y "\\WINSRVR2019-01\PackageShare\Installers\AutomaticallyInstallDefenderUpdates\AutomaticallyInstallDefenderUpdates.bat" "C:\Scripts"
|
|
schtasks /ru "SYSTEM" /create /sc hourly /mo 1 /st 23:00 /tn "Install Windows Defender Updates" /tr C:\Scripts\AutomaticallyInstallDefenderUpdates.bat /f
|
|
popd
|
|
exit 0
|