PBM: Property not in the cache when querying a user's first name with GetObject()

V

Vince C.

Hi,

We have a W2K domain controller; it's a cluster. Users are defined in Active
Directory and I made sure they all have a First Name, a Last Name a Full
Name associated with their Display Name.

The following (java) script returns "User name: John Doe":

var pUser = GetObject("WinNT://MYDOMAIN/jdoe");
WScript.Echo("User name: " + pUser.FullName );


The following script throws an error "Property not present in the cache":

var pUser = GetObject("WinNT://MYDOMAIN/jdoe");
WScript.Echo("User name: " + pUser.FirstName );

I get the same error when I attempt to retrieve last names. Can anyone tell
me what's wrong?

TIA,
Vince C.
 
J

Joe Richards [MVP]

Yes, the WinNT provider doesn't give you access to all attributes in AD.

joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top