Link to home
Start Free TrialLog in
Avatar of tmorrison3
tmorrison3

asked on

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
Avatar of aissim
aissim
Flag of United States of America image

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)
Avatar of tmorrison3
tmorrison3

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of aissim
aissim
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
(and no, it doesn't need to be a valid path yet)
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.