I tried
run wsusoffline as administrator-> no help
sfc file check-> no help
disable my avg antivirus -> no help
run "regsvr32 vbscript.dll" -> no help
Finally, I found that the error was caused by xslt.vbs, so I add the following lines to DownloadUpdates.cmd as follow
- Code: Select all
if not exist %CSCRIPT_PATH% goto NoCScript
%CSCRIPT_PATH% //NoLogo //B //E:vbs test.vbs
if errorlevel 1 goto CScriptError
- Code: Select all
:CScriptError
echo.
echo ERROR: VBScript interpreter %CSCRIPT_PATH% internal error. Usually running "regsvr32 vbscript.dll" to register the vbscript interpreter or disable your antivirus may solve the issue.
echo %DATE% %TIME% - Error: VBScript interpreter %CSCRIPT_PATH% internal error. Usually running "regsvr32 vbscript.dll" to register the vbscript interpreter or disable your antivirus may solve the issue.>>%DOWNLOAD_LOGFILE%
echo.
goto Error
test.vbs
- Code: Select all
WScript.Quit(0)
The funny part is that if I execute the DownloadUpdates.cmd under command prompt (even not elevated), it works! But if DownloadUpdates.cmd is fired by wsusoffline, the vbs interpreter complains. I believe the error should be caused by my antivirus or wrong security settings, but I am too busy to dig into it. Since I need the windows update files asap, I just make a batch files as quick and dirty solution.
- Code: Select all
for %%i in (wxp w2k3 w2k3-x64) do (
for %%j in (enu fra esn jpn kor rus ptg ptb deu nld ita chs cht plk hun csy sve trk ell ara heb dan nor fin) do (call DownloadUpdates.cmd %%i %%j )
)
for %%i in (w60 w60-x64 w61 w61-x64 w62 w62-x64 w63 w63-x64 ofc o2k13) do (call DownloadUpdates.cmd %%i glb
)
for %%i in (oxp o2k3 o2k7 o2k10) do (
if /i "%1"=="%%i" (
for %%j in (enu fra esn jpn kor rus ptg ptb deu nld ita chs cht plk hun csy sve trk ell ara heb dan nor fin) do (call DownloadUpdates.cmd %%i %%j)
)
)
Hope the post can be helpful.