Dell Command Update

By | November 5, 2021

Powershell:

#Dell Command Update Repair

if(test-path “C:\Program Files\Dell\CommandUpdate”){$Path = “C:\Program Files\Dell\CommandUpdate\dcu-cli.exe”}

Else{$Path = “C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe”}

Start-Process -FilePath $Path -ArgumentList “/applyupdates

Command line:

cd %PROGRAMFILES%\Dell\CommandUpdate\
dcu-cli.exe /applyupdates
or
C:\Program Files (x86)\Dell\CommandUpdate
dcu-cli.exe /applyupdates
If the Dell service fails to start uninstall all Dell software > Restart > Reinstall. If this fails, install the 32-bit version.

Update Report Only:

cmd.exe /c start /wait C:”Program Files (x86)”DellCommandUpdatedcu-cli.exe /report c:\drivers\Drivers.xml

To Reinstall the Program you can run this in PowerShell:

#Dell Command Update Repair

Function Uninstall{foreach ($App in $Apps){

$returnvalue = $app.uninstall() | Select-Object -Property returnvalue

$name = $app.name

if($returnvalue.returnvalue -eq “0”){

write-host “Uninstall was successful $Name-ForegroundColor Green}

else{write-host “Uninstall was NOT successful $Name-ForegroundColor Red} }}

$Apps = Get-WmiObject win32_product -ComputerName localhost |?{$_.name -like “*Dell Command*”}

&Uninstall; Start-Sleep 5

Write-host “Installing Dell Command Update” -ForegroundColor Green

Start-Process -FilePath C:\Windows\System32\msiexec.exe -ArgumentList ‘/i “Z:\Deploy\MSI\Applications\DellCommandUpdate.msi” /qn’ -Wait

Start-Sleep 5

if(test-path “C:\Program Files\Dell\CommandUpdate”){$Path = “C:\Program Files\Dell\CommandUpdate\dcu-cli.exe”}

Else{$Path = “C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe”}

Start-Process -FilePath $Path -ArgumentList “/applyupdates”}

#Restart if needed

$Reboot = Read-host “Restart?(Y/N)”

if ($Reboot = “Y”){Shutdown /f /r /t 3}