Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

LDAP LastLogonTimeStamp Conversion

Posted on April 8, 2014October 26, 2015 By David Kittell

In working with LDAP timestamps I found this script very helpful to be able to test with.

 (Get-Date "2/1/2014").ToFileTime()
[datetime]::FromFileTime("128752344000000000")

Reference: http://jai-maharaj.blogspot.com/2012/01/test.html

Originally Posted on April 8, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell

Post navigation

Previous post
Next post

Related Posts

Get City/State/Country From IP

Posted on September 27, 2013October 26, 2015

I have a lot of possible options on this page, as I find time I’ll clean this page up a bit to make it more user friendly. C# Free, Fast JavaScript Free, Fast Microsoft SQL Using GeoPlugin.net XML Option [raw] All Values geoPlugin: geoplugin_request: 208.67.222.222geoplugin_status: 200geoplugin_credit: Some of the returned…

Read More

SQL – Log Parser Studio – User-Agent

Posted on December 4, 2015December 4, 2015

Caution: These scripts will take some time to run on large logs. /* List Browser types used */ SELECT DISTINCT CASE strcnt(cs(user – agent), ‘Chrome’) WHEN 1 THEN ‘Chrome’ ELSE CASE strcnt(cs(user – agent), ‘Firefox’) WHEN 1 THEN ‘Firefox’ ELSE CASE strcnt(cs(user – agent), ‘MSIE+6’) WHEN 1 THEN ‘IE 6’…

Read More

PHP – Friendly File Size

Posted on August 15, 2013October 10, 2019

function GetFriendlySize($s) { if ($s <= 1024) return $s.’ bytes’; else if ($s <= 1048576) $s = ($s/1024).’ kilobytes’; else if ($s <= 11559501824) $s = ($s/1048576).’ megabytes’; else if ($s <= 11836929867776) $s = ($s/11559501824).’ gigabytes’; else if ($s <= 12121016184602624) $s = ($s/11836929867776).’ terabytes’; else if ($s <=…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes