Dell warranty information API
I’ve always used the SOAP API that’s provided by Dell, however recently it stopped working due to a misconfiguration in the service. This triggered me to find a different solution and luckily Dell also provides a REST API that is even simpler, gives more detailed information and actually still works.
There are 3 APIs available at the moment, but I will only dig into the warranty status as that is the most useful.
Functional specification of the warranty status API: http://en.community.dell.com/dell-groups/supportapisgroup/m/mediagallery/20438177/download.aspx
Function Global:Get-DellAssetInformation {
Param([String]$ServiceTag = $(Get-WmiObject -Class "Win32_Bios").SerialNumber)
Try {
# Possible API keys
# 1adecee8a60444738f280aad1cd87d0e
# d676cf6e1e0ceb8fd14e8cb69acd812d
# 849e027f476027a394edd656eaef4842
$APIKey = "1adecee8a60444738f280aad1cd87d0e"
$DellURL = "https://api.dell.com/support/v2/assetinfo/warranty/tags.xml?svctags=$ServiceTag&apikey=$APIKey"
$XML = New-Object System.Xml.XmlDocument
$XML.Load($DellURL)
$XML.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset
$XML.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty
}
Catch {
Write-Host $($_.Exception.Message)
}
}
Once you run this bit of code you can use the following to get the detailed information.
To get the information for the local machine use:
Get-DellAssetInformation
To get the information for a different ServiceTag use the following:
Get-DellAssetInformation -ServiceTag AB12AB1
If you have questions or comments, please post it below!
More information: http://en.community.dell.com/dell-groups/supportapisgroup/
Enjoy this article?
Consider subscribing to our rss feed!
No trackbacks yet.

April 20th, 2015 - 16:51
There is a mistype on $DellURL variable.
it should be
$DellURL = “https://api.dell.com/support/v2/assetinfo/warranty/tags.xmlsvctags=${ServiceTag}&apikey=${APIKey}”
Eitherway great script, job well done!
June 2nd, 2016 - 08:29
how can i get the APIKey?
July 25th, 2016 - 13:51
There are multiple possible APIKeys in the script. I don’t know of a way to request one with Dell.
August 2nd, 2016 - 22:17
Is there a limit to the queries per minute? I plan to pull data off of computers from Active Directory using an adaptation of this.
August 3rd, 2016 - 01:21
Looks like two plans for APIs are available:
https://developer.dell.com/registration-identity
August 4th, 2016 - 09:43
Nice find. Didn’t know about any official documentation.
April 12th, 2017 - 14:25
You can request personal API’s at https://techdirect.dell.com/portal.30/AboutAPIs.aspx
November 27th, 2017 - 08:17
Thanks! Great addition!