Exchange 2003 - programmatically set "Filter Recipients who
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Exchange 2003 - programmatically set "Filter Recipients who

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Exchange
Guest





Posted: Fri Sep 23, 2005 4:58 pm    Post subject: Exchange 2003 - programmatically set "Filter Recipients who Reply with quote

Is this parameter in the IIS Metabase? If so, where? If not, where is it?
I've been looking all over for it and am going nuts trying to find it!

Back to top
Glen Scales [MVP]
Guest





Posted: Mon Sep 26, 2005 7:05 am    Post subject: Re: Exchange 2003 - programmatically set "Filter Recipients Reply with quote

This setting is held in Active Directory I don't believe its in the
Metabase. The property itself is called "msExchRecipTurfListOptions" and it
located in the configuration partition in Active Directory on the Default
Message Filter object. To show the status via a script would look like (note
you still have to enable recipient filtering on each connector for this to
apply)

set conn = createobject("ADODB.Connection")
set com = createobject("ADODB.Command")
Set iAdRootDSE = GetObject("LDAP://RootDSE")
strNameingContext = iAdRootDSE.Get("configurationNamingContext")
Conn.Provider = "ADsDSOObject"
Conn.Open "ADs Provider"
gsQuery = "<LDAP://" & strNameingContext &
">;(objectCategory=msExchSmtpTurfList);name,msExchRecipTurfListOptions,distinguishedName;subtree"
Com.ActiveConnection = Conn
Com.CommandText = gsQuery
Set Rs = Com.Execute
While Not Rs.EOF
strconfcont = "LDAP://" & rs.fields("distinguishedName")
set ccConfig = getobject(strconfcont)
if ccConfig.msExchRecipTurfListOptions = 1 then
wscript.echo "Filter Recipients who are not in Active Directory is
Enabled"
else
wscript.echo "Filter Recipients who are not in Active Directory is Not
Enabled"
end if
rs.movenext
wend

Cheers
Glen

"Exchange" <exchange@microsoft.com> wrote in message
news:eGOgGNFwFHA.2556@TK2MSFTNGP15.phx.gbl...
Quote:
Is this parameter in the IIS Metabase? If so, where? If not, where is it?
I've been looking all over for it and am going nuts trying to find it!

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB