Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Why is the installedon date for get-hotfix rounding? (Noob here)

$
0
0

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.


Viewing all articles
Browse latest Browse all 8793

Trending Articles