Skip to content

dell_command_update.ps1

Corey Watson edited this page Dec 1, 2025 · 2 revisions

dell_command_update.ps1

Run Dell Command Update silently for driver and firmware updates.

Overview

Installs Dell Command Update via winget and runs it to scan and apply driver/firmware updates silently. Designed for automated Dell system maintenance in RMM environments.

Purpose

Automates Dell driver and firmware updates on managed Dell workstations and laptops without user interaction.

Prerequisites

  • Windows 10 1809+ or Windows 11 with winget
  • Dell system (script will fail on non-Dell hardware)
  • Admin privileges for installation and updates

Configuration

Required Inputs

  • DcuCliPath: Path to Dell Command Update CLI executable
  • DcuLogPath: Directory for DCU log files (default: C:\dell\logs)
  • WingetId: winget package ID for Dell Command Update (default: Dell.CommandUpdate)

Settings

  • Uses winget for package management
  • Configures DCU to auto-suspend BitLocker and disable user consent prompts
  • Applies updates without rebooting (reboot=disable)
  • Logs scan and apply operations to C:\dell\logs

Behavior

  1. Verifies winget is available
  2. Installs Dell Command Update if not present
  3. Upgrades DCU to latest version if already installed
  4. Verifies DCU CLI exists
  5. Configures DCU for silent operation
  6. Scans for available updates
  7. Applies updates without rebooting

Security Notes

  • No secrets in logs
  • Only affects Dell driver/firmware components

Exit Codes

  • 0: Success
  • 1: Failure (winget not found, DCU not installed, etc.)

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
DCU CLI Path : C:\Program Files\Dell\CommandUpdate\dcu-cli.exe
DCU Log Path : C:\dell\logs
Winget ID    : Dell.CommandUpdate

[ OPERATION ]
--------------------------------------------------------------
Checking for winget...
winget found
Checking for Dell Command Update...
Installing Dell.CommandUpdate...
Installation complete
Configuring Dell Command Update...
Configuration complete
Scanning for updates...
Scan complete (log: C:\dell\logs\scan.log)
Applying updates...
Updates applied (log: C:\dell\logs\applyUpdates.log)

[ RESULT ]
--------------------------------------------------------------
Status : Success

[ FINAL STATUS ]
--------------------------------------------------------------
Dell Command Update completed successfully.
Reboot may be required for some updates to take effect.

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • v2.0.0 (2025-12-01): Switched from Chocolatey to winget for package management
  • v1.0.0 (2025-11-29): Initial Style A implementation

Links

Clone this wiki locally