Powershell: Convert time string to date time

Active Directory sotre date and time as number of 100 nanoseconds intervals. sometimes Gui and powershell results converts this to you to a more readable format. But sometimes it dont. You can convert this in some different ways. One is with powershell

$time = read-host -Prompt "Enter time Value"
[datetime]::FromFileTime($time)

Leave a Reply

Your email address will not be published.