batch mode - dryrun?

batch mode - dryrun?

Postby norman » 12.09.2017, 16:42

Good day!

First of all: thanks for this great tool, which I have been using since like 15 years or so.

I am playing around with using the tool in batch mode, for realizing an unattended installation. I have found the documentation of doupdate.cmd.

Unfortunately, I cannot use any autoreboot features of doupdate.cmd, because another tool is taking care of reboots, automatic logons and network sharing. So at the moment, I would have to call doupdate.cmd blindly ten times, followed by a reboot, hoping that these are enough runs to do everything. Or I would have to parse the logfile to check whether the last run was a noop run.

So I wonder if there is any feature I can call in a cmd batch script to find out if anything would be installed at all, BEFORE I start the install. This is what I call a dry-run option. That would output what it would do, via errorlevel or triggerfile or anything I can easily use/check in a cmd script.

Does this exist? If not, Can you consider this a feature request (I might even put some own effort in it if appreciated, German spoken)?

Best, Norman.
Posts: 1
Joined: 12.09.2017, 16:14

Re: batch mode - dryrun?

Postby aker » 15.09.2017, 23:28

You could check the errorlevel, wsusou returns.

Reboot required = 3010
Reboot & recall required = 3011
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to sell it.
Posts: 3029
Joined: 02.03.2011, 16:32
Location: /dev/kmem

Return to Installation / Updating

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 10 guests