If you don't want to add the assembly reference to activeds.dll, then you
can use reflection to call InvokeMember on the HighPart and LowPart
properties, but that is probably much slower. This posting shows a VB.NET
version of such a function that you could use:
Another thing that works is if you get an INTEGER8 from an AD search (using
DirectorySearcher) instead of from a DirectoryEntry, then the interop layer
will marshal the value as an Int64 directly instead of the
System.__ComObject IDispatch pointer.
Quote:> How in the world do I convert the System___ComObject to a
> date using directory services for the LastLogon property
> in C Sharp?
I have a SMS 2.0 SP3 in NT 4.0 domain.
I have a 95 / 98 machines.
Some of this machines didn't report the LAST LOGON USER NAME and LAST LOGON USER DOMAIN.
I think the problem is WBEM, in some of this machines i delete the smsclient, using 20clicln.bat, and delete all the Wbem registry entries, and reinstall the client again, but the LAST LOGON USER NAME and LAST LOGON USER DOMAIN didn't show.
Someone have a answer for this ?