You try to use the Active Directory Service Interfaces (ADSI) extension for Terminal Services to read the properties for a user on a Windows Server 2008-based computer. Then, you may receive an error message that resembles the following:
Error: The directory property cannot be found in the cache.
Code: 8000500D
Source: Active Directory
This error can occur when you run Microsoft Visual Basic Scripting Edition (VBScript) code. For example, the error can occur when you run the following sample code.
Set objUser = GetObject("LDAP://cn=<user name>,cn=<ou>,dc=<test1>,dc=<test2>,dc=local")
Wscript.Echo objUser.Name & "Terminal Services Profile Settings"
WScript.Echo "Allow Logon:" & objUser.AllowLogon