I'm trying to pull out information about the last Windows restore point made.
So far I've made this
$rpDate = Get-ComputerRestorePoint | Select-Object -Property CreationTime
$rpDesc = Get-ComputerRestorePoint | Select-Object -Property Description
$rpDate[-1]
$rpDesc[-1]
The result is "20180711124151.733659-000", which is date and time, in what I presume is unix time. Normally, in PHP I would make a function($rpDate), but since this is powershell, I am a bit lost.
How do I convert unix time to a real date + timestamp?