Thanks for the response. I converted that to vb.net (what I'm using) and tried this:
Response.Write(CType(objGr
This returns an error: Conversion from type '_ComObject' to type 'Long' is not valid
Main Topics
Browse All TopicsI'm trying to pull from active directory the date of user's last password change but when I try to display the value I get a result of: System.__ComObject
I know nothing about .net interaction with com so I suspect it's something obvious. The relevent code I'm using is:
Dim objGroupEntry As DirectoryEntry
objGroupEntry = objResult.GetDirectoryEntr
Response.Write(objGroupEnt
Any help would be appreciated - this is .Net 2.0.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've got it now - after hours of searching I found the answer on the web right after posting here. Figures...
For future readers, the key is casting the property to ADSLargeInteger (must import ActiveDs) then calculating the number of milliseconds elapsed and converting to a date from there. Sample code below:
Dim LargeInt As IADsLargeInteger = objGroupEntry.Properties("
Dim FileTime As Long = LargeInt.HighPart * 4294967296 + LargeInt.LowPart
Response.Write(DateTime.Fr
hammdan - I appreciate you taking the time to respond. Your link didn't really contain the answer however I used some of the terms in the link as search terms to eventually find it so I'm going to award you a minimal grade for your efforts.
frodoman
Business Accounts
Answer for Membership
by: hammdan_1980Posted on 2007-09-12 at 07:49:55ID: 19876709
this may help: t/ User_Man agement_wi th_Active_ Directory% E2%80%94Ho w_Password _Modificat ion_Dates_ Are_Stored
http://en.csharp-online.ne