I’ve got a powershell script that runs through, and grabs the most recent update based on the installedon ScriptProperty. Can someone please tell me why this rounds to the nearest day, instead of giving a more precise update time.
For example if I installed patches on 2/25 and 8PM, this returns 2/26 at 12:00AM
Get-HotFix -Computername $computername | Sort-Object installedon -Descending | Select-Object pscomputername,installedon -First 1
submitted by /u/Leemofiah
[link] [comments]
The post Why is the installedon date for get-hotfix rounding? (Noob here) appeared first on How to Code .NET.