Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now