Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] Mass modify proxyadresses attributes.
Prev Next
You are not authorized to post a reply.

AuthorMessages
boubbhaUser is Offline

Posts:0

07/16/2008 9:22 PM  
Hello,

I have to mass modify the proxyadresses attributes for users  in this way:
- Replace the Site name in the X400 adress with a new name.
- Replace the secondary adress (smtp:bla bla) with a new one.

Is this possible with adfind/admod ?

Thx _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
amulnickUser is Offline

Posts:163

07/16/2008 9:22 PM  
Assume it is possible, but is there a reason that you would not do this with policies? On Sun, Jun 22, 2008 at 4:28 AM, Yann <boubbha@yahoo.fr> wrote: > Hello, > > > > I have to mass modify the proxyadresses attributes for users in this way: > > - Replace the Site name in the X400 adress with a new name. > > - Replace the secondary adress (smtp:bla bla) with a new one. > > > > Is this possible with adfind/admod ? > > > > Thx > > ------------------------------ > Envoyé avec Yahoo! Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html> > . > Une boite mail plus intelligente. >
michael1User is Offline

Posts:437

07/16/2008 9:22 PM  
This is almost certainly a bad idea. But sure, it can be done.



What is the business case for wanting to do this?



Regards,



Michael B. Smith

MCITP:EM/MCSE/Exchange MVP

http://TheEssentialExchange.com



From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Yann
Sent: Sunday, June 22, 2008 4:29 AM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] Mass modify proxyadresses attributes.




Hello,



I have to mass modify the proxyadresses attributes for users in this way:

- Replace the Site name in the X400 adress with a new name.

- Replace the secondary adress (smtp:bla bla) with a new one.



Is this possible with adfind/admod ?



Thx



_____

Envoyé avec Yahoo! <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html> Mail.
Une boite mail plus intelligente.


bdesmondUser is Offline

Posts:995

07/16/2008 9:24 PM  
It will break meetings for one. Outlook client sometimes caches the X400
addr int he little dropdown autocomplete thing as well I've noticed.

--brian

Add an additional X400 and keep the old one.

On Sun, Jun 22, 2008 at 6:49 PM, joe <listmail@joeware.net> wrote:

> I would need to see specifics, but yeah it should do it just fine.
>
> I wouldn't recommend replacing the secondary, I would add an additional
> secondary. At least until you know the old secondaries aren't being used
> anymore.
>
> On the X400... Not sure what the repercussions would be of changing the
> site in that, do you?
>
>
> --
> O'Reilly Active Directory Third Edition -
> http://www.joeware.net/win/ad3e.htm
>
>
>
> ------------------------------
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *Yann
> *Sent:* Sunday, June 22, 2008 4:29 AM
> *To:* ActiveDir@mail.activedir.org
> *Subject:* [ActiveDir] Mass modify proxyadresses attributes.
>
> Hello,
>
>
>
> I have to mass modify the proxyadresses attributes for users in this way:
>
> - Replace the Site name in the X400 adress with a new name.
>
> - Replace the secondary adress (smtp:bla bla) with a new one.
>
>
>
> Is this possible with adfind/admod ?
>
>
>
> Thx
>
> ------------------------------
> Envoyé avec Yahoo! Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>
> .
> Une boite mail plus intelligente.
>



--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132

tonyszkoUser is Offline

Posts:140

07/16/2008 9:24 PM  
Brian Desmond wrote:
> It will break meetings for one. Outlook client sometimes caches the X400
> addr int he little dropdown autocomplete thing as well I've noticed.

Hmmmm ... X400 ... I know that Outlook caches value from
legacyExchangeDN and when you change it without taking care about
storing old value it will break autocomplete on client side

--
Tomasz Onyszko
http://www.w2k.pl/ - (PL)
http://blogs.dirteam.com/blogs/tomek/ - (EN)
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx
ParzivalUser is Offline

Posts:108

07/16/2008 9:24 PM  
I was under the impression that X500 addresses where used in Outlook cache (and LegacyExchangeDN).

Anyhow, just add the new X400 as an additional one..

-Roelf

-----Original Message-----
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Tomasz Onyszko
Sent: Monday, June 23, 2008 12:35 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] Mass modify proxyadresses attributes.

Brian Desmond wrote:
> It will break meetings for one. Outlook client sometimes caches the X400
> addr int he little dropdown autocomplete thing as well I've noticed.

Hmmmm ... X400 ... I know that Outlook caches value from
legacyExchangeDN and when you change it without taking care about
storing old value it will break autocomplete on client side

--
Tomasz Onyszko
http://www.w2k.pl/ - (PL)
http://blogs.dirteam.com/blogs/tomek/ - (EN)
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx

List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ma/default.aspx
boubbhaUser is Offline

Posts:0

07/16/2008 9:34 PM  
Hello,

The X400 proxy is like this:
c=FR;a=META;p=MyEntrerprise;o=MyOrg;s=myemail@myentreprise.fr

id'like to modify the organisation name (o=MyOrg to o=whatelse).

Thx for your help,

Yann

--- En date de : Lun 23.6.08, joe <listmail@joeware.net> a écrit :

De: joe <listmail@joeware.net>
Objet: RE: [ActiveDir] Mass modify proxyadresses attributes.
À: ActiveDir@mail.activedir.org
Date: Lundi 23 Juin 2008, 17h55



_filtered #yiv668169276 {
font-family:Wingdings;}
_filtered #yiv668169276 {
font-family:Cambria Math;}
_filtered #yiv668169276 {
font-family:Calibri;}
_filtered #yiv668169276 {
font-family:Tahoma;}
_filtered #yiv668169276 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv668169276 P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
#yiv668169276 LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
#yiv668169276 DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
#yiv668169276 P {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
#yiv668169276 SPAN.emailstyle18 {
}
#yiv668169276 SPAN.emailstyle181 {
COLOR:#1f497d;FONT-FAMILY:"Calibri", "sans-serif";}
#yiv668169276 SPAN.EmailStyle20 {
COLOR:#1f497d;FONT-FAMILY:"Calibri", "sans-serif";}
#yiv668169276 .MsoChpDefault {
}
#yiv668169276 DIV.Section1 {
}


Very likely this doesn't require a script, adfind piped to admod can likely handle it. Just need details on the specifics of what needs to be done.

   joe




--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 





From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Roelf Zomerman
Sent: Monday, June 23, 2008 11:15 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Mass modify proxyadresses attributes.




Hi Yann,

Create a script that queries those users and add’s a new x400 address.

Changing the current X400 could interfere with the Exchange internal mail processing (Exchange 2000/2003/5.5).

Adding a 2nd X400 is not a problem. X400 addresses can simply be added to the proxyaddresses field by using the APPEND command

                Set objConnection = CreateObject("ADODB.Connection")
                objConnection.Provider = "ADsDSOObject"
                objConnection.Open "Active Directory Provider"

                Set objCommand = CreateObject("ADODB.Command")
                objCommand.ActiveConnection = objConnection
                objCommand.Properties("Page Size") = 1000

                strQuery = "<"& strDomain &">;(&(objectCategory=person)(proxyaddresses=*)(!(proxyAddresses=x400:*)))"
                StrQuery = strQuery & ";adspath,proxyAddresses,distinguishedName,cn;subtree"
                log strQuery
                objCommand.CommandText = strQuery

                Set objRecordSet = objCommand.Execute
                intRecords = objRecordSet.RecordCount
                log " # reported : " & intRecords
                If intRecords = 0 Then
                                log "No records found, exiting."
                                Exit sub
                End If

                objRecordSet.MoveFirst
                While Not objRecordSet.EOF
                                Set gobjUser = GetObject(objRecordSet.Fields("adspath"))
gobjUser.PutEx ADS_PROPERTY_APPEND, “proxyaddresses”, Array(<NEW X400>;)
                Next

etc etc..  offcourse you need to edit a bit to suite your environment and what you exactly want to do

But joe probably has a shortcut J

-Roelf


From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Yann
Sent: Monday, June 23, 2008 4:48 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Mass modify proxyadresses attributes.





Hello all,


Sorry for the delay.... hard work today !

We wanted to modify the X400 proxy for users for which the Recipeint policies are not applied. It will be a bit longer to explain the why "we"  proceed as this,  but to resume:
For some users, we don't want the RUS to apply Recipent Policies. And for these users only, we want to modify the Site Name in their X400 proxy.

Thx,

Yann

--- En date de : Dim 22.6.08, Michael B. Smith <michael@TheEssentialExchange.com> a écrit :

De: Michael B. Smith <michael@TheEssentialExchange.com>
Objet: RE: [ActiveDir] Mass modify proxyadresses attributes.
À: ActiveDir@mail.activedir.org
Date: Dimanche 22 Juin 2008, 17h10


This is almost certainly a bad idea. But sure, it can be done.

What is the business case for wanting to do this?

Regards,

Michael B. Smith
MCITP:EM/MCSE/Exchange MVP
http://TheEssentialExchange.com


From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Yann
Sent: Sunday, June 22, 2008 4:29 AM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] Mass modify proxyadresses attributes.





Hello,

I have to mass modify the proxyadresses attributes for users  in this way:
- Replace the Site name in the X400 adress with a new name.
- Replace the secondary adress (smtp:bla bla) with a new one.

Is this possible with adfind/admod ?

Thx




Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente.




Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente. _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
ParzivalUser is Offline

Posts:108

07/16/2008 9:36 PM  
Just modify this one to fit x400 (small x) and add your new one with a capital X400 in the proxy addresses field..

Then you do not break anything, but future communications inside exchange will use the new X400 address.

Roelf

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Yann
Sent: Tuesday, June 24, 2008 2:25 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Mass modify proxyadresses attributes.


Hello,



The X400 proxy is like this:

c=FR;a=META;p=MyEntrerprise;o=MyOrg;s=myemail@myentreprise.fr



id'like to modify the organisation name (o=MyOrg to o=whatelse).



Thx for your help,



Yann

--- En date de : Lun 23.6.08, joe <listmail@joeware.net> a écrit :
De: joe <listmail@joeware.net>
Objet: RE: [ActiveDir] Mass modify proxyadresses attributes.
À: ActiveDir@mail.activedir.org
Date: Lundi 23 Juin 2008, 17h55
Very likely this doesn't require a script, adfind piped to admod can likely handle it. Just need details on the specifics of what needs to be done.

joe


--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm



________________________________
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Roelf Zomerman
Sent: Monday, June 23, 2008 11:15 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Mass modify proxyadresses attributes.
Hi Yann,

Create a script that queries those users and add’s a new x400 address.

Changing the current X400 could interfere with the Exchange internal mail processing (Exchange 2000/2003/5.5).

Adding a 2nd X400 is not a problem. X400 addresses can simply be added to the proxyaddresses field by using the APPEND command

Set objConnection = CreateObject("ADODB.Connection")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"

Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.Properties("Page Size") = 1000

strQuery = "<"& strDomain &">;(&(objectCategory=person)(proxyaddresses=*)(!(proxyAddresses=x400:*)))"
StrQuery = strQuery & ";adspath,proxyAddresses,distinguishedName,cn;subtree"
log strQuery
objCommand.CommandText = strQuery

Set objRecordSet = objCommand.Execute
intRecords = objRecordSet.RecordCount
log " # reported : " & intRecords
If intRecords = 0 Then
log "No records found, exiting."
Exit sub
End If

objRecordSet.MoveFirst
While Not objRecordSet.EOF
Set gobjUser = GetObject(objRecordSet.Fields("adspath"))
gobjUser.PutEx ADS_PROPERTY_APPEND, “proxyaddresses”, Array(<NEW X400>;)
Next

etc etc.. offcourse you need to edit a bit to suite your environment and what you exactly want to do

But joe probably has a shortcut ☺

-Roelf

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Yann
Sent: Monday, June 23, 2008 4:48 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Mass modify proxyadresses attributes.


Hello all,





Sorry for the delay.... hard work today !



We wanted to modify the X400 proxy for users for which the Recipeint policies are not applied. It will be a bit longer to explain the why "we" proceed as this, but to resume:

For some users, we don't want the RUS to apply Recipent Policies. And for these users only, we want to modify the Site Name in their X400 proxy.



Thx,



Yann

--- En date de : Dim 22.6.08, Michael B. Smith <michael@TheEssentialExchange.com> a écrit :
De: Michael B. Smith <michael@TheEssentialExchange.com>
Objet: RE: [ActiveDir] Mass modify proxyadresses attributes.
À: ActiveDir@mail.activedir.org
Date: Dimanche 22 Juin 2008, 17h10
This is almost certainly a bad idea. But sure, it can be done.

What is the business case for wanting to do this?

Regards,

Michael B. Smith
MCITP:EM/MCSE/Exchange MVP
http://TheEssentialExchange.com

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Yann
Sent: Sunday, June 22, 2008 4:29 AM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] Mass modify proxyadresses attributes.


Hello,



I have to mass modify the proxyadresses attributes for users in this way:

- Replace the Site name in the X400 adress with a new name.

- Replace the secondary adress (smtp:bla bla) with a new one.



Is this possible with adfind/admod ?



Thx


________________________________
Envoyé avec Yahoo! Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.


________________________________
Envoyé avec Yahoo! Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.


________________________________
Envoyé avec Yahoo! Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] Mass modify proxyadresses attributes.



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:rana.b4523
New TodayNew Today:1
New YesterdayNew Yesterday:1
User CountOverall:5291

People OnlinePeople Online:
VisitorsVisitors:38
MembersMembers:0
TotalTotal:38

Online NowOnline Now:

Ads

Copyright 2012 ActiveDir.org
Terms Of Use