# Dell Command Update

## Overview

{% hint style="info" %}
**Dev Insight:** This script was originally written to make sure devices deployed during our MDT process had the latest drivers/firmware from Dell, but it can also be used to update Dell devices already deployed via your RMM of choice.
{% endhint %}

This script downloads and installs the latest version of Dell Command Update (DCU) if not already installed. It will then use `dcu-cli.exe` to download and install all Dell driver/firmware updates, ignoring reboots.

{% embed url="<https://www.dell.com/support/product-details/en-us/product/command-update/resources/manuals>" %}

**Prerequisites:** This script has no prerequisites.&#x20;

**Notes:**

* Script will abort if a PC manufacturer other than Dell is detected.
* Dell Update, which is incompatible with Dell Command Update, will be removed if detected.
* .NET Desktop Runtime, a prerequisite to Dell Command Update 5.5+, will be updated / installed to the latest LTS release if not already installed.&#x20;
* Dell Command Update is not intended for use with server hardware. Use Dell System Update instead.

***

## Script

{% hint style="info" %}
Script will abort if a system manufacturer other than Dell is detected.
{% endhint %}

{% @github-files/github-code-block url="<https://github.com/wise-io/scripts/blob/main/scripts/DellCommandUpdate.ps1>" %}

## Examples

```powershell
.\DellCommandUpdate.ps1
```

This example downloads and installs Dell Command Update if it isn't already installed. After installation, Dell Command Update will check for and install any Dell updates.

```
.\DellCommandUpdate.ps1 -Reboot
```

This example downloads and installs Dell Command Update if it isn't already installed. After installation, Dell Command Update will check for and install any Dell updates. Once complete, a message will be displayed, and a reboot will be forced after 60 seconds.

***

## Parameters

`-Reboot`

Switch parameter - if specified, notifies the user and forces a reboot after 60 seconds.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scripts.aaronjstevenson.com/device-management/updates/dell-command-update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
