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