Error when checking updates. #1

Open
opened 2025-04-10 16:32:44 +00:00 by rohskiddo · 0 comments
Owner

When running in admin & non admin mode, update section spits out error.

Sort-Object : Exception getting "InstalledOn": "Exception calling "Parse" with "2" argument(s): "String was not recognized as a valid DateTime.""
At C:\temp\testing\WindowsHealthAudit\WindowsHealthAudit.ps1:153 char:28
+ ... lastUpdate = Get-HotFix | Sort-Object InstalledOn -Descending | Selec ...
+                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (\\<REDACTED>\root\...PackInEffect="":PSObject) [Sort-Object], GetValueInvocationException
    + FullyQualifiedErrorId : ExpressionEvaluation,Microsoft.PowerShell.Commands.SortObjectCommand
When running in admin & non admin mode, update section spits out error. ``` Sort-Object : Exception getting "InstalledOn": "Exception calling "Parse" with "2" argument(s): "String was not recognized as a valid DateTime."" At C:\temp\testing\WindowsHealthAudit\WindowsHealthAudit.ps1:153 char:28 + ... lastUpdate = Get-HotFix | Sort-Object InstalledOn -Descending | Selec ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (\\<REDACTED>\root\...PackInEffect="":PSObject) [Sort-Object], GetValueInvocationException + FullyQualifiedErrorId : ExpressionEvaluation,Microsoft.PowerShell.Commands.SortObjectCommand ```
rohskiddo self-assigned this 2025-04-10 16:32:44 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rohskiddo/WindowsHealthAudit#1
No description provided.