Try running it this way. You should be able to see any output or error messages. I typically add to the path first rather than using & or start-process.

invoke-command mycomputer { 
$env:path += ';C:\Program Files (x86)\Dell\CommandUpdate'; 
dcu-cli /applyUpdates -autoSuspendBitLocker=enable -outputLog=C:\Dell_Update.log }

Using start-process inside invoke-command seems pretty challenging. I can't even see the output of findstr unless I save it to a file. And if I didn't wait the output would be truncated. By default start-process runs in the background and in another window. There's a -nonewwindow option too but it doesn't help with invoke-command.

invoke-command localhost { # elevated
start-process 'findstr' '/i word c:\users\joe\file1' -wait -RedirectStandardOutput c:\users\joe\out } 
Answer from js2010 on Stack Overflow
🌐
Dell
dell.com › dell community › software › endpoint management
dcu-cli /configure - error code 2 | DELL Technologies
April 19, 2023 - Apparently you're new version of dcu-cli doesn't like that and returns error code 2. If it open a command prompt in the SYSTEM context, and run the same command, it's fine. I know I'm not the only one with this problem because many on other ...
🌐
Reddit
reddit.com › r/sccm › dell command update - return code 2
r/SCCM on Reddit: Dell Command Update - Return Code 2
September 16, 2022 -

I'm tearing my hair out on this one.

Windows 10 - 21H2 x64 (Enterprise, if it matters), installing DCU with PSADT, and this works fine:

Execute-Process -Path 'DCU_Setup_4_6_0.exe' -Parameters "/S /v/qn"

I've even rebooted after this install just to be sure. However in any case, having SCCM try and either import our config XML, or run any "/configure" command fails with return code 2. I've run it with cmd, with start, by calling dcu-cli directly, and any combination you can think of and it doesn't work.

It does log:

Execute-Process -Path "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" -Parameters '/configure -importSettings=C:\Temp\xxxx-DCU-v2.xml -silent -outputLog=C:\Temp\DCU.log'

But no matter what (log here https://pastebin.com/0HQuzYyJ ) we're always seeing:

[2022-09-15 23:19:07] : An error occurred while executing the provided CLI command. 
[2022-09-15 23:19:07] : The program exited with return code: 2 

Even though it claims it changes the settings it doesn't.

Anyone have any clue what's up? This is too simple to fail and I've been banging on this for a few days.

Edit: 4.5.0 works, but it's missing the restart deferral options and also allows a user to disable automatic updates on first launch of the GUI even after locking settings. Ugh. Dell.....

Edit2: We gave up, are doing 4.6.0 and just rawdogging the settings in the registry with PSADT:

https://pastebin.com/YNCWf8eg

Top answer
1 of 5
4
I am struggling withe the exact same issue. The importSettings parameter fails with exit code 2. Even after I added a 30 second wait, it still fails the import of the xml. This started failing with version 4.6.0... But if I run the exact same script locally, not via Software Center, the import completes just fine. Any suggestions?
2 of 5
4
Interesting to read something regarding my EXACT problem. PSADT, SCCM and DCU exit code 2! This is an issue with many, but not all, DCU versions. 4.1 and 4.5 worked but not 4.2-4.4 and 4.6-4.7 (which also turned into an UWP app). We got around almost every problem by inserting all settings directly into the registry with PSADT:s Set-RegistryKey, as everything is stored within HKEY_LOCAL_MACHINE\SOFTWARE\Dell\UpdateService\Clients\CommandUpdate\Preferences it's really easy. The only thing we couldn't get into the registry was the BIOS password since its scrambled and different on every machine. I tried just running the "dcu-cli.exe /configure -biosPassword" command via Execute-Process in PSADT but that resulted in exit code 2 too. As did creating a scheduled task running the command as SYSTEM. And, as many have stated, running the command as SYSTEM in cmd or PS works fine...speachless! But, I ended up testing running the dcu-cli command in a Task Sequence and, voila, it worked! So no i have a DCU 4.7 application installing DCU and inserting settings in registry. Then a TS running the dcu-cli command with an if statement under the Options tab to only run if dcu-cli.exe exists and the registry key BiosPassword doesn't. Then I have deployed it required to the DCU 4.7 collection to run every Wednesday, in case it decides to go away in any future update.
Discussions

windows - PowerShell Invoke-Command with Start-Process outputs different result - Stack Overflow
In short dcu-cli.exe. The thing now is than when i run the same script code on the computer local then everything runs OK but when i run the exact same code in a script with invoke-command(and yes i have full admin rights) than the exitcode is 2 meaning An unknown application error has occurred ... More on stackoverflow.com
🌐 stackoverflow.com
powershell - Using PSRemoting to Install Dell Updates using dcu-cli.exe - Stack Overflow
& "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /version ... Here is what I've tried so far. Unless otherwise specified, the output is as follows. Sometimes the output is in a log file (depending on the command line): An unexpected fatal error occurred Program exited with return code: 2 More on stackoverflow.com
🌐 stackoverflow.com
Inspiron 7791, running Dell Command Update returns Exitcode 2
Currently i'm trying to install our custom company image on 30+ Inpirion 7791 laptops via MDT. The image is a fresh build of Windows 10 IoT Enterprise 2019 LTSC 1809. Unfortunately i'm getting an e... More on dell.com
🌐 dell.com
2
0
March 2, 2020
Pass exit code from dcu-cli.exe to PSADT v4
Hi, I am running a Dell Command | Update in PSADT in order to update the BIOS using dcu-cli.exe on devices with a BIOS password set. I have the update process working but I am having trouble passing the exit code from dcu-cli.exe to PSADT to trigger a reboot. More on discourse.psappdeploytoolkit.com
🌐 discourse.psappdeploytoolkit.com
16
0
April 15, 2025
🌐
PDQ Help Center
help.pdq.com › hc › en-us › community › posts › 5744766582299-Dell-Command-Update-4-5-failing-with-Error-code-2
Dell Command Update - 4.5 failing with Error code 2 – PDQ Deploy & Inventory Help Center
May 9, 2022 - When you have a look at the log file you'll notice that return code 2 means a restart is required after installation. That's why I "aligned" it in my script: # Dell Command Update installation returns reboot required as exit code 2 # align it ...
🌐
Stack Overflow
stackoverflow.com › questions › 60307898 › using-psremoting-to-install-dell-updates-using-dcu-cli-exe
powershell - Using PSRemoting to Install Dell Updates using dcu-cli.exe - Stack Overflow
& "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /version ... Here is what I've tried so far. Unless otherwise specified, the output is as follows. Sometimes the output is in a log file (depending on the command line): An unexpected fatal error occurred Program exited with return code: 2
🌐
Dell
dell.com › dell community › laptops › inspiron
Inspiron 7791, running Dell Command Update returns Exitcode 2 | DELL Technologies
March 2, 2020 - I start the DCU-CLI.exe via a powershell script with the code below: $ExitCode = (Start-Process -FilePath ('C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe') -ArgumentList ('/driverInstall -outputLog=C:\Dell_DriverInstall.log') -PassThru -Wait).ExitCode ·
🌐
Automox
community.automox.com › community hub › forum › automox worklets › find & share worklets › basic dell command update worklet
Basic Dell Command Update Worklet | Community
November 29, 2023 - $system = Get-WmiObject ... was successful.'} 1 {'Reboot the system to complete the operation.'} 2 {'An unknown application error has occurred'} 3 {'The current system manufacturer is not Dell.'} 4 {'The CLI was not launched ...
Find elsewhere
🌐
PSAppDeployToolkit Community
discourse.psappdeploytoolkit.com › the toolkit › general discussion
Pass exit code from dcu-cli.exe to PSADT v4 - General Discussion - PSAppDeployToolkit Community
April 15, 2025 - Hi, I am running a Dell Command | Update in PSADT in order to update the BIOS using dcu-cli.exe on devices with a BIOS password set. I have the update process working but I am having trouble passing the exit code from d…
🌐
Reddit
reddit.com › r/sccm › dell command update
r/SCCM on Reddit: Dell Command Update
March 31, 2022 -

For some reason when I install this via TS, it's only installing the command line dcu-cli with no gui. Also, when I run

cmd.exe /c start /wait C:\"Program Files"\Dell\CommandUpdate\dcu-cli.exe /ApplyUpdates

via TS I can watch it download and apply some updates, but it was failing to install the latest firmware and bios.

I'm having to install the bios and schedule a reboot before pushing out any software..I then have it install DCU, run, restart into the OS and STILL our touchscreen and touchpad aren't working until we log in and run another windows update. At that point it installs the latest Dell Firmware as well as the drivers needed for touchscreen and touchpad.

This is with the latest latitude 5520 driver cab injected into the image.

🌐
Reddit
reddit.com › r/sysadmin › dell command update - exit codes
r/sysadmin on Reddit: Dell Command Update - exit codes
September 20, 2018 -

We have various models of Dell Optiplex on the network and I'm trying to update the BIOS/drivers for all of them. I'm attempting to use PDQ to deploy Dell Command Update to accomplish this task. I've already deployed the client itself + my policy file, and am now trying to create a package that will run "dcu-cli.exe /silent /policy mypolicy.xml /log mylog".

PDQ seems to be doing its thing, and I can check the computer to ensure the dcu-cli.exe is running. However, PDQ typically ends up saying "Failed command script returned error code 1". I cannot figure out what is throwing the error code 1. By reading the log.xml file, I can see that there are some updates that require a reboot, etc. but those are giving Exit Code 2 (needs reboot).

After I run the initial dcu-cli.exe (which fails eventually), then reboot the machine, if I re-run my PDQ package, there are no errors. I don't know why its not exiting gracefully (exit code 0) and allowing me to reboot when I'm ready. Any tips? I've tried with a powershell script too, using start-process, same type of error though "powershell script returned no error code". I verified that it really is returning Exit Code 1, i just can't figure out why!!

🌐
PSAppDeployToolkit Community
discourse.psappdeploytoolkit.com › the toolkit › toolkit features
DCU-CLI Exit Codes (How to set RebootExitCodes) - Toolkit Features - PSAppDeployToolkit Community
November 19, 2025 - I'm trying to use psadt through SCCM to run Dell's dcu-cli and its working great except for handling the exit codes. An exit code of 1 means it needs a reboot but PSADT is returning that as a failure. I've tried adding "1" using the -SuccessExitCodes parameter, the -RebootExitCodes parameter ...
🌐
Manuals+
manuals.plus › home › dell › dell command | update version 4.x reference guide
Dell Command | Update Version 4.x Reference Guide
August 18, 2025 - To run the CLI: Launch the command prompt as an Administrator, then go to %PROGRAMFILES%\Dell\CommandUpdate and run the dcu-cli.exe command in the command prompt.
🌐
Dell
dell.com › dell community › thin clients › enterprise client
Cannot run DCU succesfully from a SCCM Task Sequence | DELL Technologies
January 15, 2019 - [-tp=1 to 3] 1 = low priority or 2 = normal priority or 3 = high priority [-list] Extract the configuration file [-sic -outc= ] output xml file for Static Inventory Collector Normal 2019-01-15T12:51:53.8662182+01:00 CLI: Error: Check for updates ...
Top answer
1 of 11
8

DELL Command Update version: Dell-Command-Update-Application-for-Windows-10_GRVPK_WIN_4.3.0_A00.EXE

Dell Command | Update Version 4.x Reference Guide

Steps:

  1. Open interactive command line interface on remote workstation
  2. Execute dcu-cli.exe /applyUpdates -updateType=bios,firmware,driver -autoSuspendBitLocker=enable -outputLog=C:\Temp\scanOutput.log
  3. Command fails with return code 500 (see log output below)

I’ve omitted all commands except /applyUpdates -updateType, but I am still getting the same result.

I can ping downloads.dell.com and dellupdater.dell.com.

I’ve attempted this on different workstations over several days.

Any help would be appreciated.

[2021-08-16 11:40:42] : The computer manufacturer is ‘Dell’

[2021-08-16 11:40:42] : Checking for updates…

[2021-08-16 11:40:43] : Checking for application component updates…

[2021-08-16 11:40:45] : Determining available updates…

[2021-08-16 11:40:45] : The scan result is DOWNLOAD_ERROR

[2021-08-16 11:40:45] : INDEX_CATALOG_FAILED_DOWNLOAD is flagged in the scan results

[2021-08-16 11:40:45] : The catalog CatalogIndexPC.cab failed to provide any result

[2021-08-16 11:40:45] : The service provided this message 'Catalog download failed [https://downloads.dell.com/catalog/CatalogIndexPC.cab] ’

[2021-08-16 11:40:45] : The service provided this message 'Catalog download failed [https://dellupdater.dell.com/non_du/ClientService/Catalog/CatalogIndexPC.cab] ’

[2021-08-16 11:40:46] : Execution completed.

[2021-08-16 11:40:46] : The program exited with return code: 500

[2021-08-16 11:40:46] : State monitoring instance total elapsed time = 00:00:04.8709729, Execution time = 9mS, Overhead = 0.194844032082379%

[2021-08-16 11:40:46] : State monitoring disposed for application domain dcu-cli.exe

2 of 11
0

This is the command I run. I just ran it on some of my computers are it works. Also using the current version. Hope this helps

"C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" /applyUpdates -reboot=enable -updateType=driver,application -outputLog="c:\temp\DellCommandUpdate%dt%.log"
🌐
Reddit
reddit.com › r/sccm › dell command update in task sequence
r/SCCM on Reddit: Dell Command Update in Task Sequence
February 2, 2024 -

Struggling to get DCU to run during the TS. Below is what my setup looks like (took these from someone elses post). Using DCU 5.1.0. I can briefly see the cmd window open during the TS but it quickly closes. What am I doing wrong?

Step name: Dell Driver Install (x64)

Run Command Line:

cmd.exe /c "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /driverInstall -reboot=disable -outputLog=C:\DellDriversDuringImaging.log

Step name: Restart Computer to OS

Step name: Dell Update Install (x64)

Run Command Line:

cmd.exe /c "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /ApplyUpdates -updatetype=BIOS,firmware,driver -reboot=disable -outputLog=C:\DellUpdatesDuringTS.log

🌐
Reddit
reddit.com › r/dell › dell command update client: the command dcu-cli.exe /configure errors out on 3005 "installing pending updates"
r/Dell on Reddit: Dell Command Update Client: The command DCU-cli.exe /configure errors out on 3005 "Installing pending updates"
October 4, 2024 -

Hello!

I'm trying to install Dell Command Update client on my fleet of laptops and apply configuration where it locks the GUI and changes the check updates setting schedule to 'manual' (instead of being automatic) with the following powershell script:

Start-Process -filepath Dell-Command-Update-Application_6VFWW_WIN_5.4.0_A00.EXE -ArgumentList '/s /l=C:\Windows\Logs\install.log' -wait

Start-Process -filepath dcu-cli.exe -ArgumentList '/configure -userConsent=disable -scheduleManual' -wait

This script generally works across the majority of our laptops for the most part.

However, there is a small number of laptops that do not execute the second command to apply the dcu-cli.exe /configure step. The DCU-cli.exe errors out on code 3005 which translates to "The Dell Client Management Service is installing pending updates."

This error only happens on these machines when you string the two commands together. If you immediately launch another shell and run the second script manually, it applies the config no problem. I don't know what it is about having the two commands being strung together on some particular laptops that it returns this error code. I've tried inserting a step in between to restart the dellclientmanagement service, but it has no affect. Only launching another separate shell afterwards to apply it seems to work.

Has anyone encountered this before?

Much appreciated if anyone has any advice

Thanks!

🌐
Dell
dell.com › dell community › desktops › optiplex desktops
Dell Command Update 3.1.1 - dcu-cli.exe /applyUpdates - incompleted download | DELL Technologies
March 11, 2020 - [2020-04-22 11:42:08] : [1] 4C0M1, Intel Management Engine Components Installer,1914.12.0.1255,A04, 1914.12.0.1255 [2020-04-22 11:42:08] : [2] VP20T, Intel PCIe Ethernet Controller Driver,24.1.0.0,A13, 24.1.0.0 [2020-04-22 11:42:09] : Execution completed. [2020-04-22 11:42:09] : Program exited with return code: 1002 ... I have same problem. I use 3 switches in one batch file, but last step "dcu-cli.exe /applyUpdates" exiting with error code 1002.
🌐
Manuals+
manuals.plus › home › dell › dell e5450 core i5 5th gen 8gb ram 256gb ssd hdmi laptop user guide
DELL E5450 Core i5 5th Gen 8GB Ram 256GB SSD HDMI Laptop User Guide - Manuals+
January 16, 2024 - To view additional information about the commands and options available in Dell Command | Update: Run dcu-cli.exe / help. NOTE: If some updates require a restart to complete the installation, the system does not restart automatically unless-reboot=enable is used.