Thanks :)

Shortly after I wrote the message,  I noticed the naming difference in the MMC.  It makes sense now,  but I just have to explain it. :)

Silly me :)  But thanks again

Jef


From: "Coleman, Hunter" <[EMAIL PROTECTED]>
Sent: Friday, August 06, 2004 8:39 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Account Expiration Date Mismatch?


From http://msdn.microsoft.com/library/default.asp?url="">
 
 
"Note  The accountExpires attribute contains the account expire date. The Active Directory Users and Computers MMC snap-in displays the date that the account will expire at the end of. That is, the Active Directory Users and Computers MMC snap-in will display the account expiration date as one day earlier than the date contained in the accountExpires attribute."
 
Hunter


From: Jef Kazimer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 9:19 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Account Expiration Date Mismatch?

I was brought this little problem today, which doesn't make alot of sense to me so far.

It appears that ADUC displays the User Expiration date differently than a VBS script does.    An in house coded application is being questioned because these values do not match.


ADUC says 8/8/2004
VBS says 8/9/2004

The script is simply:

Set objUser = GetObject _
  (rs.fields("adspath"))
wscript.echo(objUser.AccountExpirationDate)

Does anyone know what the code is to return the same value as USers & Computers MMC?

I have a feeling it's an estimate based on the time offset, but I am unsure.

Jef


Reply via email to