Powershell automatically converts all the date-time fields to Epoch time when using 'ConvertTo-Json'. Is there a way to prevent this from happening or changing it back to human-readable date-time? For example, check some of the fields in the output
Command:
Get-LocalUser | ConvertTo-Json
Output:
"PasswordChangeableDate": "\/Date(1597311158786)\/",
"PasswordExpires": null,
"UserMayChangePassword": true,
"PasswordRequired": true,
"PasswordLastSet": "\/Date(1597224758786)\/",
"LastLogon": "\/Date(1597238163431)\/",
Is there a way to prevent Powershell from converting the above fields into Epoch time, or converting them back to human-readable date-time?