ztiwindowsupdate error

Sean Bevan 1 Reputation point
2022-06-23T14:44:12.357+00:00

when running the client side targeting wsus I am receiving the following error(s):

Already connected to server mdtBOX as that is where this script is running from.
Begin Windows Update. Reboot=[] Retry=[] Count = 0
Property MSIT_WU_Count is now = 1
Configuring client to use WSUS server http://X.X.X.X
Configuring Windows Update settings (manual update, use server)
Archive NoAUtoUpdate State: Was [<empty>].
Property NoAutoUpdate_Previous is now = <empty>
Windows Update Agent verion 8 found, OK to continue
Ready to Opt-In to Microsoft Update: WUA Version: 10.0.19041.1503
Microsoft Update Service: Enabled = False
Command Line Procesed Query=False Registered=False UpdateCommand=[IsInstalled = 0 and IsHidden = 0]
Start Search... ZTIWindowsUpdate 6/23/2022 9:14:46 AM 0 (0x0000)
FAILURE (Err): -2145123264 0x80240440: Windows Update, search for updates. -
Restore NoAutoUpdateKey to <empty>.
ZTI ERROR - Non-zero return code by ZTIWindowsUpdate, rc = 1

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
931 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Simon Ren-MSFT 38,561 Reputation points Microsoft Vendor
    2022-06-24T08:37:49.703+00:00

    Hi,

    Thanks for posting in Microsoft Q&A forum.

    You could try to specify the correct port that WSUS is listening on in CommonSettings.ini, for example:
    WSUSServer=http://WSUSServerName:8530

    Similar thread for your reference:
    Task sequence failure - ZTIWindowsUpdate
    MDT Task sequence fails to install windows updates from local WSUS server -2145107943 0x80244019

    Hope it helps. Thanks for your time.

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.