Hello,
this sound like a good idea to me, and it doesn't need additional date calculations, which I wouldn't know how to implement in DOS anyway.
Greetings,
Hartmut
Please verify this 'goto :eof' is correct - my WOU stops after skipping win glb. In cmd window it ask me to press a key then update generator errors out.WSUSUpdateAdmin wrote:Hi!
I implemented the following now (line 1070+):
- Code: Select all
echo %DATE% %TIME% - Info: Verified integrity of existing updates for %1 %2>>%DOWNLOAD_LOGFILE%
for %%i in (..\client\md\hashes-%1-%2.txt) do echo _%%~ti | %SystemRoot%\System32\find.exe "_%DATE:~-10%" >nul 2>&1
if not errorlevel 1 (
if exist ..\exclude\ExcludeList-superseded.txt (
for %%i in (..\exclude\ExcludeList-superseded.txt) do echo _%%~ti | %SystemRoot%\System32\find.exe "_%DATE:~-10%" >nul 2>&1
if errorlevel 1 (
echo Skipping download/validation of %1 %2 due to 'same day' rule.
echo %DATE% %TIME% - Info: Skipped download/validation of %1 %2 due to 'same day' rule>>%DOWNLOAD_LOGFILE%
goto :eof
)
)
)
del ..\client\md\hashes-%1-%2.txt
That means, 'same day' rule will fire if hashes-%1-%2.txt has timestamp from today (thanks, Hartmut! ) and ExcludeList-superseded.txt has timestamp not from today, i.e. older.
This will also consider changed wsusscn2.cab files, because ExcludeList-superseded.txt will always be recalculated then.
Return to Anregungen / Suggestions
Users browsing this forum: No registered users and 32 guests