Very simple question. How do i get this string:
$endDate = “01/14/2088”
Some code here to tranform the current form of date into numbers which AD can accept.
Into $accountExpire which can be inserted via:
The Format is like this “129955896000000000” A big ass number.
$newUser.put(“accountExpire”, $accountExpire)
REMEMBER! It’s Windows 2003r2 we are talking about.
Here is a way to solve it in PowerShell :
You can download a tool called SlxWinDFI (sorry in french) that allow you to verify and to compute long date from calendar dans duration.