Skip to content

Modify output so can be looped nicer #35

Description

@rich0dify

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"...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions