Hi, this is an amazing script, and has saved me a bunch of time - but to make it easier to output, select, work from I made the following changes:
$output = New-Object PSObject $output | Add-Member -NotePropertyName "SerialNumber" -NotePropertyValue $null $output | Add-Member -NotePropertyName "ProductNumber" -NotePropertyValue $null $output | Add-Member -NotePropertyName "Start" -NotePropertyValue $null $output | Add-Member -NotePropertyName "End" -NotePropertyValue $null $output | Add-Member -NotePropertyName "Active" -NotePropertyValue $null $output.SerialNumber = $SerialNumber $output.ProductNumber = $ProductNumber $output.Active = $entitlement.'ISEE-GetOOSEntitlementInfoResponse'.Data.EsReply.CombinedUnitEntitlement.ActiveWarrantyEntitlement $output.Start = $entitlement.'ISEE-GetOOSEntitlementInfoResponse'.Data.EsReply.CombinedUnitEntitlement.OverallWarrantyStartDate $output.End = $entitlement.'ISEE-GetOOSEntitlementInfoResponse'.Data.EsReply.CombinedUnitEntitlement.OverallWarrantyEndDate
I'd put this in a pull request, but I have no clue how the hell git works. Need to to my long list of "To Learn"...
Hi, this is an amazing script, and has saved me a bunch of time - but to make it easier to output, select, work from I made the following changes:
$output = New-Object PSObject $output | Add-Member -NotePropertyName "SerialNumber" -NotePropertyValue $null $output | Add-Member -NotePropertyName "ProductNumber" -NotePropertyValue $null $output | Add-Member -NotePropertyName "Start" -NotePropertyValue $null $output | Add-Member -NotePropertyName "End" -NotePropertyValue $null $output | Add-Member -NotePropertyName "Active" -NotePropertyValue $null $output.SerialNumber = $SerialNumber $output.ProductNumber = $ProductNumber $output.Active = $entitlement.'ISEE-GetOOSEntitlementInfoResponse'.Data.EsReply.CombinedUnitEntitlement.ActiveWarrantyEntitlement $output.Start = $entitlement.'ISEE-GetOOSEntitlementInfoResponse'.Data.EsReply.CombinedUnitEntitlement.OverallWarrantyStartDate $output.End = $entitlement.'ISEE-GetOOSEntitlementInfoResponse'.Data.EsReply.CombinedUnitEntitlement.OverallWarrantyEndDateI'd put this in a pull request, but I have no clue how the hell git works. Need to to my long list of "To Learn"...