Good day to all,
In my quest to perfecting the web app I'm developing, I was ask to make the web app update the "accountexpire" attribute. I have try diferent forums and the solutions I find, either I don't get them because of my noob status or they just dont work. My app can take diferent attributes and update them without problems (but later on I'm going to need some help to change how the app writes on the AD because I'm using a old method use here and is so long and confusing, and I bet there is a simpler method, but thats topic for another post) . Since "accountexpire" uses a INT8 , atleast for me is hard to write for it. I was thinking then to find something to convert a date into a Int8 number, the only one that I found in several web site is the one located in this link: http://info.izzy.org/Technical/Scripting/Lists/Snippets/DispForm.aspx?ID=2.
When I copy paste the scrip, I get a "Wscript not declare" error. I'm developing in Vb 2008. I can write on the attribute if I use a int8 (64bit) number. I know that the max value is 2^31 - 1 and this one in numbers is 9223372036854775807. I know my app write it because i change the last 3 digits to 000 and when I refresh app to show the accountexpire attribute as it is on the AD it shows the change. So
View Complete Post