Vadims Podans
Vadims Podans 08.11.2013 00:39 (GMT+2) How to convert pKIExirationPeriod and pKIOverlapPeriod Active Directory attributes

Wow, thanks, I never thinked about BitConverter :)

kirill
kirill 07.11.2013 22:58 (GMT+2) How to convert pKIExirationPeriod and pKIOverlapPeriod Active Directory attributes

public static class PkiPeriod { public static TimeSpan ToTimeSpan(Byte[] value) { Int64 period = BitConverter.ToInt64(value, 0); period /= -10000000; return TimeSpan.FromSeconds(period); } public static Byte[] ToByteArray(TimeSpan value) { Double period = value.TotalSeconds; period *= -10000000; return BitConverter.GetBytes((Int64)period); } }

Johann Zandanel
Johann Zandanel 24.10.2013 02:04 (GMT+2) PS PKI v1.5 is released!

thanks

Juan mamani
Juan mamani 23.10.2013 04:43 (GMT+2) Share management in PowerShell

Im having problems running command Add-SharePermission, could please provide me an example to run this command?

Juan mamani
Juan mamani 23.10.2013 04:21 (GMT+2) Share management in PowerShell

Im having problems running command Add-SharePermission, could please provide me an example to run this command?