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