If your company has Dell computers, then it could be necessary that you get the warranty information into your Asset Management System, for example: System Center Service Manager or even System Center Configuration Manager.
There was a solution in the past to get this information directly through a REST api from a dell webpage, but that services was disposed in May 2016. Perhaps you already used one of these Solutions:
- TechNet Gallery (Dell Service Tag Script)
- SystemCenter Ninja (Opalis/SCSM solution to grab Dell Warranty info)
Dell now offers a new way to get this information through the Dell Warranty Status API.
Ok, that provides more security, but…
The problem with this is, that every company needs to request access and go through an approval process:
- Request access and provide information about your environment and the tool which should grab the data incl. throughput estimates
- Then you get a key and the access to the sandbox system, where you test the connection. The key expires after 90 days.
- After giving feedback and some more reviews, you will get the approval to use the production webpage with the same key. Until that you are allowed to use the sandbox system.
More details can be found here.
You can request the access here.
I have created a PowerShell script which gets the ServiceLevelDescription and the EndDate for one Dell Computer. You can download the script here.
# AUTHOR: Natascia Heil
# Script Name: GetDellWarrantyInfo.ps1
# DATE: 09/09/2016
# Version: 1.0
# COMMENT: – Script to check Warranty information for a computer from the
# Dell Warranty Status API
# Example: .\GetDellWarrantyInfo.ps1 -ServiceTag ‘1a2b3c’ -ApiKey “sdfj7122394057sdfiouwer” -Dev $true
$URL1 = “https://sandbox.api.dell.com/support/assetinfo/v4/getassetwarranty/$ServiceTag”
$URL1 = “https://api.dell.com/support/assetinfo/v4/getassetwarranty/$ServiceTag”
$URL2 = “?apikey=$Apikey”
$URL = $URL1 + $URL2
$Request = Invoke-RestMethod -URI $URL -Method GET -contenttype ‘Application/xml’
$Warranty=$Request.AssetWarrantyDTO.AssetWarrantyResponse.AssetWarrantyResponse.AssetEntitlementData.AssetEntitlement|where ServiceLevelDescription -NE ‘Dell Digitial Delivery’
If ($Warranty -is [Object])
Here are two examples what information you can get through the API:
You can use this script in an Orchstrator Runbook or Azure Automation to feed data into i.e. SCSM.
Orchestrator Runbook example:
In the Initialize Data create a Parameter for the ServiceTag (Serialnumber of the machine).
In the Run .Net activity paste the PowerShell script, then you do not need the param part, you can directly enter the variables ($ServiceTag, $Apikey, $Dev) with the corresponding values. Enter $SLA and $EndDate as Published Data and define that as returned data of the Runbook. With that you can call this runbook from all other main runbooks and get the warranty data for a Computer.