Powershell script to query Dell website for Warranty End Date

This little powershell script uses WMI to get the local PCs Service Tag from the bios. It then queries Dell’s website for the warranty information and loops through each warranty line item to find the latest date. Once we have the date, it is then written to the registry. The warranty end date is then ready to be used in BGInfo or exported to a MOE tool such as Altiris NS for easy reporting.