Solved

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

Posted on 2008-10-14
5
1,397 Views
Last Modified: 2008-10-17
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
Comment
Question by:tmorrison3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:aissim
ID: 22717122
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
 
LVL 3

Author Comment

by:tmorrison3
ID: 22723083
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
 
LVL 19

Accepted Solution

by:
aissim earned 500 total points
ID: 22723612
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
 
LVL 19

Expert Comment

by:aissim
ID: 22723620
(and no, it doesn't need to be a valid path yet)
0
 
LVL 3

Author Comment

by:tmorrison3
ID: 22742438
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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question