Solved

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

Posted on 2008-10-14
5
1,381 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
  • 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
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…

772 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