Hi - random PowerShell question (I do seem to ask more PowerShell questions than Adaxes questions...!).
We have a little bit of code to return the current value of an AD attribute as below, and it should update a different timestamp attribute in AD after reading it.
I have it almost working but am 'very' bad at working out how to properly convert variables in PowerShell, and need to create "$newNums" which is derived from a Date\Time stamp, into a Windows NT time numeric value, then into an Adaxes.ADSI.LongInteger (I think!).
# Set new timestampin 24 hours
$newTime = (Get-Date).AddDays(1)
$newNums= << Can’t work out how to convert the GetDate format timestamp to a “Windows Time” Adaxes format Long Integer>>
Anyone who can work this out is my hero..!