/updatenow not working

Hi Team,
I’m trying to create task for running install command and getting exit code. Code=-2147023888, Please help me to understand what would be the issue.
ActionLogMessage: (action:1163668) starting action
At 13:03:44 -0400 - actionsite (http://ITXXXXXXYYYYWN.bluemed.esni.ibm.com:52311/cgi-bin/bfgather.exe/actionsite)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
Command started - wait cmd /C C:\Windows\System32\wuauclt.exe /detectnow (action:1163668)
At 13:09:02 -0400 -
Report posted successfully
At 13:09:03 -0400 - actionsite (http://ITXXXXCCYYYY02WN.bluemed.esni.ibm.com:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=0) wait cmd /C C:\Windows\System32\wuauclt.exe /detectnow (action:1163668)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
Command started - wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Command succeeded (Exit Code=0) wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
Command started - wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Command succeeded (Exit Code=-2147023888) wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
Command started - wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Command succeeded (Exit Code=-2147023888) wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
Command started - wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
At 13:09:04 -0400 - actionsite (http://IT06QTXXXXXXWN.bluemed.esni.ibm.com:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=-2147023888) wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
Command started - wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Command succeeded (Exit Code=-2147023888) wait cmd /C C:\Windows\System32\wuauclt.exe /updatenow (action:1163668)
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system} (action:1163668)
At 13:09:04 -0400 -
ActionLogMessage: (action:1163668) ending action

Looks like a problem with wuauclt.exe. try running it manually, outside of BigFix, and see whether it gives a useful error message.

Hi Jason, I tried running the command in command prompt. Works well, patches detected and starts installation.
Problem only when we run through bigfix.

I’ve not much looked at wuault in a while, but it seems /detectnow is not a thing anymore. https://docs.microsoft.com/en-us/archive/blogs/yongrhee/wuauclt-detectnow-in-windows-10-and-windows-server-2016

You could try using powershell.
(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()

I use this shell command relevance to check for updates via right click options

“C:\PSTools\psexec \”& name of current computer &" powershell.exe (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()"