Simplifying Dell Command Warranty with PowerShell

TLDR: Get-DellWarrantyInfo Function can be found here: garytown/hardware/Dell/CommandUpdate/EMPS/Dell-EMPSWarranty.ps1

In this post I’ll cover the Dell Warranty CLI tool they provide, and how I’ve converted it to use a “PowerShell Wrapper” to make it simple and useful.

Overview of Dell’s Provided Tool

Dell Command Warranty is part of the Dell Command Integration Suite:
Dell Command Integration Suite for Microsoft System Center | Dell US

It’s a compiled EXE that gets INSTALLED when you install the integration suite on a device.

Now the download is quite large, about 35MB, but since you’re installing it on an endpoint, it only installs the Warranty tool which takes up just under 2MB.

Ok, with that background info, how does it work? To the Docs! Dell Command | Warranty Version 6.6 User’s Guide | Dell US

So long story short, you have to feed it a csv file… which I find annoying…

So if you want to run it on a machine, you first have to get the serial number for it, put it into a CSV file, then feed that CSV file into the command line. SIGH

Oh, but it gets better, the output is just a CSV file.. which I guess because it’s Not PowerShell, it might be the best way to get the data, so make sure you specify where you want it..

Lets take it for a test drive. I’ve created a file with the serial number in it, and now I feed it into the tool:

and the export:

PowerShell It!

Goals:

  • Automate download / install of the CLI Tool
  • Have it automatically return the warranty from the device it’s running on if Dell device, with no additional parameters required
  • Have the ability to feed it a service tag instead of CSV file
  • Have the data returned in an object which can be used for automation or easy export
  • Still have it work with ConfigMgr
  • Still be able to feed it a CSV file of serial numbers
  • Option to remove the Installation of the CLI tool after it runs.

Solution: Custom Function ‘Get-DellWarrantyInfo’ Hosted on GitHub: garytown/hardware/Dell/CommandUpdate/EMPS/Dell-EMPSWarranty.ps1

Running on Dell Machine:

Pulling information from ConfigMgr DB: (Requires the user has rights to CM)

You can see I have 35 warranties listed for my 12 devices.

Passing in a Service Tag:

Ideas on how you can use this:

Hope that helps, if you have questions, please reach out to me on WinAdmins Discord in the #ConfigMgr channel. WinAdmins

GARYTOWN.COM

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.