I'm trying to reference the 'accountExpires' property of an account and am getting the following error:
Active Directory: The directory property cannot be found in the cache.
I can access the 'AccountExpirationDate' property, but not 'AccountExpires' property. Does anyone know why?
The code is as follows:
Active Directory: The directory property cannot be found in the cache.
I can access the 'AccountExpirationDate' property, but not 'AccountExpires' property. Does anyone know why?
The code is as follows:
Code:
Set objUser = GetObject ("LDAP://...")
' the below 2 lines work fine
WScript.Echo objUser.AccountExpirationDate
objUser.AccountExpirationDate = "2008/11/11"
' the below 3 lines all generate the above error
WScript.echo objUser.Get "accountExpires"
objUser.Put "accountExpires",0 ' does not expire
objUser.Put "accountExpires", "2008/11/11"