Skip to main content

Dell Command Update - Install + Command Handler

Summary

The task installs the latest version of Dell Command | Update for Windows Universal from Winget if it's missing or outdated. The Argument parameter can be used to run the specified command or argument. If the parameter is left blank, the /scan command will be executed.

Supported commands/arguments reference:
Supported commands/arguments reference

Exit codes reference:
Exit codes reference

Sample Run

Sample Run Image 1

Example 1:

Running the script with basic /scan command to return the available updates.
Sample Run Image 2

Example 2:

Running the script to install available bios, firmaware, and driver updates.
This command will not install any active driver as we are not using the -forceupdate switch.
Example2

Example 3:

Running the script to forcefully install all available driver updates.
Caution: It is recommended to restart the computer at the earliest convenience after using the -forceupdate=enable switch, as this switch updates active drivers as well. An active driver that requires a restart for the update may malfunction if the update is installed without rebooting the computer.
Example3

Sample Run Image 3

Dependencies

Invoke-WingetProcessor

User Parameters

NameExamplesAccepted ValuesDefaultTypeRequiredDescription
Argument
  • /version
  • /scan
  • /scan -updateType=bios,firmware,driver
  • /applyUpdates -updateType=bios,firmware -silent -reboot=disable
  • /applyUpdates -updateType=driver -silent -reboot=disable -forceupdate=enable
  • /driverInstall -silent -reboot=disable
Supported commands/arguments reference/scanTextFalseCommand to execute with Dell Command | Update. If left blank, the default value /Scan will be used.

User Parameter Image

Task Creation

Create a new Script Editor style script in the system to implement this task.

Task Creation Image 1
Task Creation Image 2

Name: Dell Command Update - Install + Command Handler
Description: The task installs the latest version of "Dell Command | Update for Windows Universal" from "Winget" if it's missing or outdated. The "Argument" parameter can be used to run the specified command or argument. If the parameter is left blank, the "/scan" command will be executed.
Category: Application

Task Creation Image 3

Parameters

Add a new parameter by clicking the Add Parameter button present at the top-right corner of the screen.

Parameters Image 1

This screen will appear.
Parameters Image 2

  • Set Argument in the Parameter Name field.
  • Select Text String from the Parameter Type dropdown menu.
  • Enable the Default Value button.
  • Set /scan in the Default Value field.
  • Click the Save button.

Parameters Image 3

Click the Confirm button to save the parameter.
Parameters Image 4

Task

Navigate to the Script Editor Section and start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.

Task Image 1

A blank function will appear.
Task Image 2

Row 1 Function: PowerShell Script

Search and select the PowerShell Script function.
Task Image 3
Task Image 4

The following function will pop up on the screen:
Task Image 5

Paste in the following PowerShell script and set the expected time of script execution to 3600 seconds. Click the Save button.

PowerShell Script

Task Image 6

Row 2 Function: Script Log

Add a new row by clicking the Add Row button.
Task Image 7

A blank function will appear.
Task Image 8

Search and select the Script Log function.
Task Image 9
Task Image 10

The following function will pop up on the screen:
Task Image 11

In the script log message, simply type %output% and click the Save button.
Task Image 12

Click the Save button at the top-right corner of the screen to save the script.
Task Image 13

Completed Task

Completed Task Image

Output

  • Script log

Changelog

2025-04-10

  • Initial version of the document

2025-03-12

  • Updated the solution document to show more examples and fixed the powershell issue that caused during the migration from IT Glue to our content portal.