Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1449
  • Last Modified:

Use Admodify.net or a script to make bulk field change

I have some information in Exchange 2007 in Custom Attribute 1 - it is a web URL http:/server/photo/user name.jpg. I need to change half of the URL to point to a different server: http://newserver/directory/photo/user name.jpg.

I am trying to use ADmodify.net to make the changes but can't figure it out - I only need the first half of the string changed. Is there an easier/better way to accomplish this?

Thanks
0
tmorrison3
Asked:
tmorrison3
  • 3
  • 2
1 Solution
 
aissimCommented:
This should work for you....assuming the photo names truly include the username? (username.jpg)

In ADModify whichever string you're modifying, use the following syntax:

http://newserver/directory/photo/%'samaccountname'%.jpg

(be sure to include the apostrophe's inside the percent signs as well)
0
 
tmorrison3Author Commented:
When I try to add %'samaccountname'%.jpg I keep getting an error:
message="ADMODIFY.ERR - An error occured while parsing attribute . The error was: Could not find any recognizable digits." />

I works when i dont try to use any variables /%'dispalyName'%.jpg fails also

The string I am entering is http://servername/photos/%'samaccountname'%.jpg 
(the actual path does not exist yet - is that an issue?)

Thanks
0
 
aissimCommented:
Here ya go. For some reason when using a URL it wants another '/' before the variable (so two // after photos):

http://servername/photos//%'samaccountname'%.jpg
0
 
aissimCommented:
(and no, it doesn't need to be a valid path yet)
0
 
tmorrison3Author Commented:
I ended up changing the path to only  /photos//'%displayName'%.jpg I still needed the extra slash to make it work. Thank you for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now