Generate List of Missing Updates

Generate List of Missing Updates

Postby josephbutler » 09.08.2019, 16:44

How can I run WSUS offline against my system without actually installing anything?

Basically, I need to generate a list of what would be installed/updated without actually installing or updating anything...kind of like a dry run.

Any way to do this?

The purpose is to identify everything that will be installed/updated before I run the program to install.
josephbutler
 
Posts: 8
Joined: 09.08.2019, 16:32

Re: Generate List of Missing Updates

Postby Dalai » 09.08.2019, 17:38

I remember that a very similar question has ben asked in the past, but unfortunately I haven't been able to find the according thread. So, I'm going to start from scratch.

WSUS Offline itself isn't meant to do such a thing, when using its regular function out of the box anyway. However, there are parts in WSUS Offline that can help achieve what you want. Namely it's wsusoffline\client\cmd\ListMissingUpdateIds.vbs which is used to determine missing updates on the clients before installing them. You can also use my HideUpdates script :arrow: viewtopic.php?p=20852#p20852 which does something similar. In any case, both scripts contain code that can help writing your own script if you so desire. In case you want to use my HideUpdates but don't understand German, please feel free to ask anything that's unclear (the explanations in HideUpdates.ini and output of HideUpdates.au3 are in German only).

Regards
Dalai
Dalai
 
Posts: 1041
Joined: 12.07.2016, 21:00

Re: Generate List of Missing Updates

Postby aker » 09.08.2019, 21:35

Copy .\client\wsus\wsusscn2.cab to your temporary folder and run .\client\cmd\ListMissingUpdateids.vbs.
In your temporary folder will be a file "MissingUpdateIds.txt" after the script finished.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Generate List of Missing Updates

Postby josephbutler » 10.08.2019, 19:38

I have tried this and the VBS script runs, but no .txt file is created in the temp directory.
josephbutler
 
Posts: 8
Joined: 09.08.2019, 16:32

Re: Generate List of Missing Updates

Postby Dalai » 10.08.2019, 20:20

Did you copy the catalog file to %TEMP% directory? Is the Windows Update service enabled on your system? What (error) message do you get when you run
Code: Select all
cscript.exe //nologo path\to\wsusoffline\client\cmd\ListMissingUpdateIds.vbs


Regards
Dalai
Dalai
 
Posts: 1041
Joined: 12.07.2016, 21:00

Re: Generate List of Missing Updates

Postby aker » 11.08.2019, 00:56

How long did you wait?
The script takes a long time to run (if everything is up to date >= 1-2 minutes).
Please check using the Task-Manager, if "wscript.exe" or "cscript.exe" is running.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Generate List of Missing Updates

Postby josephbutler » 12.08.2019, 17:45

The script took about 4 minutes to run.

I verified that the Windows Update Service was running, it was triggered when the script was executed.

I verified that the Windows Scripting host was running in task manager.

Still did not see the log file get generated....I kept refreshing the folder.
josephbutler
 
Posts: 8
Joined: 09.08.2019, 16:32

Re: Generate List of Missing Updates

Postby josephbutler » 12.08.2019, 21:23

Dalai wrote:Did you copy the catalog file to %TEMP% directory? Is the Windows Update service enabled on your system? What (error) message do you get when you run
Code: Select all
cscript.exe //nologo path\to\wsusoffline\client\cmd\ListMissingUpdateIds.vbs


Regards
Dalai


I did cop it to the %Temp% directory. When i ran the above command with the //nologo, I did not receive any error messages.
josephbutler
 
Posts: 8
Joined: 09.08.2019, 16:32

Re: Generate List of Missing Updates

Postby aker » 14.08.2019, 02:06

Which version of Windows do you use? (If it's Windows 10, please post the full version and build number shown under "winver")
x86/32bit or x64/64bit?
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Generate List of Missing Updates

Postby josephbutler » 14.08.2019, 12:27

Windows 10 pro
64-bit
Version 1903 (OS build 18362.239)
josephbutler
 
Posts: 8
Joined: 09.08.2019, 16:32

Next

Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 53 guests