The code I posted does exactly that,Grev79 wrote: Warranty: 640.23:59:59.Days
Not to nitpick but is there a way to remove the hours, minutes and seconds so it only shows 640?
Grev(Aeo)
Dell Warranty API Days Left...
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Dell Warranty API Days Left...
Re: Dell Warranty API Days Left...
I fiddled with your code a bit and got it to work.
$(([datetime]$dell[1].EndDate - [datetime]::Today).Days) days remaining
Thank you again for your assistance. I am really enjoying PowerShell and PowerShell Studio. Just need to get the bossman to sign off on a full version.
Grev(Aeo)
$(([datetime]$dell[1].EndDate - [datetime]::Today).Days) days remaining
Thank you again for your assistance. I am really enjoying PowerShell and PowerShell Studio. Just need to get the bossman to sign off on a full version.
Grev(Aeo)