Talk About Network

Google





Software > ADSI General > GetObject Synta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5299 of 5437
Post > Topic >>

GetObject Syntax and Common Name

by "Thomas M." <NoEmailReplies@[EMAIL PROTECTED] > Jun 6, 2008 at 11:26 PM

I am new to ADSI scripting.  I'm working through some examples in a book
and 
I've run into a small issue.  One of the scripts in the book modifies the 
description of a user account.  I created a test account where the common 
name is ADSITest.  I have the following command in the script:

Set objUser =  GetObject("LDAP://CN=ADSITest,OU=Test 
Accounts,DC=MyCompany,DC=com")

In this case the script works.  However, if the common name is something 
more complicated--such as "Jones, Indiana"--I get an error on this line 
which basically indicates that the account could not be found.  The book 
does not seem to contain the correct syntax for handling this situation. 
I've tried everything that I can think of without success.

What would be the syntax of this command if "Jones, Indiana" was the
common 
name?

I do have one other question while I'm thinking of this.  I have noticed 
that after running the script I need to open the account properties dialog

box to see the change to the Description field--it does not immediately 
update the Description column in ADU&C.  It appears that I need to do 
something like rename the account in order to force the Description column

in ADU&C to update.  Is there a way to make the Description column update 
immediately?

--Tom
 




 3 Posts in Topic:
GetObject Syntax and Common Name
"Thomas M." <  2008-06-06 23:26:38 
Re: GetObject Syntax and Common Name
"Richard Mueller [MV  2008-06-07 08:06:33 
Re: GetObject Syntax and Common Name
"Thomas M." <  2008-06-07 22:36:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 20:25:26 PST 2009.