1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Questions about how to using LDAP get the configurations of exchange 2007

Discussion in 'Windows Home Server' started by liyong, Aug 19, 2009.

  1. liyong

    liyong Guest

    Hello,

    I am try to using LDAP get exchange 2007 configuration, currently, I am
    using LDAP browser ( a free tool) see the configurations saved in Active
    Directory,
    (there are many infomations of exchange2007 saved in ActiveDirectory, You
    can use
    ldap://your DC name:389/cn=Microsoft
    Exchange,cn=Services,CN=Configuration,DC=ecora,DC=local??base?(objectClass=*)
    as the url to see the infomation tree )
    but I don't know how to get some configurations infomation.
    anyone can provide LDAP paths to get info will be appreciated.

    Q1: I don't know how to get the 'Exchange Administrators':

    How to operate it in computer:
    Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    Console,
    expend 'Micorsoft Exchange' in left Pane, select 'Organization
    Configuration' node.
    now, right pane will list the 'Exchange Administrators', it has 3 columns:
    'Identity', 'Role','Scope'.

    I need the 3 column values.

    Q2: I don't know how to get the 'Server Configuration':

    How to operate it in computer:
    Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    Console,
    expend 'Micorsoft Exchange' in left Pane, select 'Server Configuration'
    node.
    now, right pane will list the 'Server Administrators', it has 3 columns:
    'Name', 'Role','Version'.

    I need the 3 column values.

    Q3: I don't know how to get the 'Recipient Configuration':

    How to operate it in computer:
    Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    Console,
    expend 'Micorsoft Exchange' in left Pane, select 'Recipient Configuration'
    node.
    now, right pane will list the 'Recipient Administrators',it has 5 columns:
    'Display Name', 'Alias','Recipient Type Details', 'Primary SMTP
    Address','Organizational Unit'.

    I need the 5 column values.

    any help will be appreciated.

    thanks
     
  2. "liyong" <liyong@cyberresource.com.cn> wrote in message
    news:OZoGQLLIKHA.4708@TK2MSFTNGP03.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hello,
    >
    > I am try to using LDAP get exchange 2007 configuration, currently, I am
    > using LDAP browser ( a free tool) see the configurations saved in Active
    > Directory,
    > (there are many infomations of exchange2007 saved in ActiveDirectory, You
    > can use
    > ldap://your DC name:389/cn=Microsoft
    > Exchange,cn=Services,CN=Configuration,DC=ecora,DC=local??base?(objectClass=*)
    > as the url to see the infomation tree )
    > but I don't know how to get some configurations infomation.
    > anyone can provide LDAP paths to get info will be appreciated.
    >
    > Q1: I don't know how to get the 'Exchange Administrators':
    >
    > How to operate it in computer:
    > Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    > Console,
    > expend 'Micorsoft Exchange' in left Pane, select 'Organization
    > Configuration' node.
    > now, right pane will list the 'Exchange Administrators', it has 3 columns:
    > 'Identity', 'Role','Scope'.
    >
    > I need the 3 column values.
    >
    > Q2: I don't know how to get the 'Server Configuration':
    >
    > How to operate it in computer:
    > Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    > Console,
    > expend 'Micorsoft Exchange' in left Pane, select 'Server Configuration'
    > node.
    > now, right pane will list the 'Server Administrators', it has 3 columns:
    > 'Name', 'Role','Version'.
    >
    > I need the 3 column values.
    >
    > Q3: I don't know how to get the 'Recipient Configuration':
    >
    > How to operate it in computer:
    > Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    > Console,
    > expend 'Micorsoft Exchange' in left Pane, select 'Recipient Configuration'
    > node.
    > now, right pane will list the 'Recipient Administrators',it has 5 columns:
    > 'Display Name', 'Alias','Recipient Type Details', 'Primary SMTP
    > Address','Organizational Unit'.
    >
    > I need the 5 column values.
    >
    > any help will be appreciated.
    >
    > thanks
    >
    ><!--colorc--><!--/colorc-->


    For Exchange 2007, all of these values can be derived using Power Shell. The
    following are some pointers on how to use it.

    A Primer on the Exchange Management ShellJan 31, 2007 ... The wizards show
    you the Exchange Management Shell commands .... For Exchange 2007, the
    Microsoft Exchange User Education team .... i saw a great tool based on
    powershell for exchange managment called Exchange Tasks 2007 ...


    Exchange 2007 Powershell commands and tips | tech-informer.comMay 18, 2007
    .... One Response to “Exchange 2007 Powershell commands and tips”. Jeffrey
    Bissette UNITED KINGDOM , on February 24th, 2009 at 8:45 am Said: ...


    User Administration in Exchange 2007 using Powershell CmdLetsJul 3, 2008 ...
    User Administration in Exchange 2007 using Powershell CmdLets ... Powershell
    commands and even the GUI creates Powershell commands from the ...


    The Exchange 2007 Wiki - PowerShell ScriptsDec 10, 2008 ... Wiki for sharing
    tips and scripts related to Exchange Server 2007.


    Otherwise, you can use ADSI vbscripting, which someone else may be able to
    better assist with. However, with Exchange, the preferred method is Power
    Shell.

    --
    Ace

    This posting is provided "AS-IS" with no warranties or guarantees and
    confers no rights.

    Please reply back to the newsgroup or forum to benefit from collaboration
    among responding engineers, and to help others benefit from your resolution.

    Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
    Microsoft Certified Trainer

    For urgent issues, please contact Microsoft PSS directly. Please check
    for regional support phone numbers.
     
  3. liyong

    liyong Guest

    thank you ,Ace Fekay,
    Could we use it(Exchange 2007 command shell) in ourself applications?


    "Ace Fekay [MCT]" <aceman@mvps.RemoveThisPart.org>
    ??????:ebq$qrNIKHA.4432@TK2MSFTNGP05.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > "liyong" <liyong@cyberresource.com.cn> wrote in message
    > news:OZoGQLLIKHA.4708@TK2MSFTNGP03.phx.gbl...<!--coloro:green--><span style="color:green <!--/coloro-->
    >> Hello,
    >>
    >> I am try to using LDAP get exchange 2007 configuration, currently, I am
    >> using LDAP browser ( a free tool) see the configurations saved in Active
    >> Directory,
    >> (there are many infomations of exchange2007 saved in ActiveDirectory, You
    >> can use
    >> ldap://your DC name:389/cn=Microsoft
    >> Exchange,cn=Services,CN=Configuration,DC=ecora,DC=local??base?(objectClass=*)
    >> as the url to see the infomation tree )
    >> but I don't know how to get some configurations infomation.
    >> anyone can provide LDAP paths to get info will be appreciated.
    >>
    >> Q1: I don't know how to get the 'Exchange Administrators':
    >>
    >> How to operate it in computer:
    >> Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    >> Console,
    >> expend 'Micorsoft Exchange' in left Pane, select 'Organization
    >> Configuration' node.
    >> now, right pane will list the 'Exchange Administrators', it has 3
    >> columns:
    >> 'Identity', 'Role','Scope'.
    >>
    >> I need the 3 column values.
    >>
    >> Q2: I don't know how to get the 'Server Configuration':
    >>
    >> How to operate it in computer:
    >> Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    >> Console,
    >> expend 'Micorsoft Exchange' in left Pane, select 'Server Configuration'
    >> node.
    >> now, right pane will list the 'Server Administrators', it has 3 columns:
    >> 'Name', 'Role','Version'.
    >>
    >> I need the 3 column values.
    >>
    >> Q3: I don't know how to get the 'Recipient Configuration':
    >>
    >> How to operate it in computer:
    >> Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    >> Console,
    >> expend 'Micorsoft Exchange' in left Pane, select 'Recipient
    >> Configuration'
    >> node.
    >> now, right pane will list the 'Recipient Administrators',it has 5
    >> columns:
    >> 'Display Name', 'Alias','Recipient Type Details', 'Primary SMTP
    >> Address','Organizational Unit'.
    >>
    >> I need the 5 column values.
    >>
    >> any help will be appreciated.
    >>
    >> thanks
    >>
    >><!--colorc--><!--/colorc-->
    >
    >
    > For Exchange 2007, all of these values can be derived using Power Shell.
    > The following are some pointers on how to use it.
    >
    > A Primer on the Exchange Management ShellJan 31, 2007 ... The wizards show
    > you the Exchange Management Shell commands .... For Exchange 2007, the
    > Microsoft Exchange User Education team .... i saw a great tool based on
    > powershell for exchange managment called Exchange Tasks 2007 ...
    >
    >
    > Exchange 2007 Powershell commands and tips | tech-informer.comMay 18, 2007
    > ... One Response to “Exchange 2007 Powershell commands and tips”. Jeffrey
    > Bissette UNITED KINGDOM , on February 24th, 2009 at 8:45 am Said: ...
    >

    >
    > User Administration in Exchange 2007 using Powershell CmdLetsJul 3, 2008
    > ... User Administration in Exchange 2007 using Powershell CmdLets ...
    > Powershell commands and even the GUI creates Powershell commands from the
    > ...
    >

    >
    > The Exchange 2007 Wiki - PowerShell ScriptsDec 10, 2008 ... Wiki for
    > sharing tips and scripts related to Exchange Server 2007.
    >

    >
    > Otherwise, you can use ADSI vbscripting, which someone else may be able to
    > better assist with. However, with Exchange, the preferred method is Power
    > Shell.
    >
    > --
    > Ace
    >
    > This posting is provided "AS-IS" with no warranties or guarantees and
    > confers no rights.
    >
    > Please reply back to the newsgroup or forum to benefit from collaboration
    > among responding engineers, and to help others benefit from your
    > resolution.
    >
    > Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
    > Microsoft Certified Trainer
    >
    > For urgent issues, please contact Microsoft PSS directly. Please check
    >
    for regional support phone numbers. <!--colorc--><!--/colorc-->
     
  4. "liyong" <liyong@cyberresource.com.cn> wrote in message
    news:edsM80hIKHA.4236@TK2MSFTNGP04.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > thank you ,Ace Fekay,
    > Could we use it(Exchange 2007 command shell) in ourself applications?<!--colorc--><!--/colorc-->

    My forte is not scripting, however, as far as I see, as long as Power Shell
    is installed, and you have the commands in your script, I don't see a
    problem. Maybe someone who has more experience with Power Shell with
    scripting, may help better than I can.

    Ace
     
  5. "liyong" <liyong@cyberresource.com.cn> wrote in message
    news:edsM80hIKHA.4236@TK2MSFTNGP04.phx.gbl...

    Liyong,

    I cross-posted this to the PowerShell newsgroup to see if they can help. As
    I previously posted, I don't see why not as long as PowerShell is installed,
    but the folks in that group can provide more specifics than I can.

    You can just check back in this group for responses, but at least you now
    know the other group exists.

    Ace


    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > thank you ,Ace Fekay,
    > Could we use it(Exchange 2007 command shell) in ourself applications?
    >
    >
    > "Ace Fekay [MCT]" <aceman@mvps.RemoveThisPart.org>
    > ??????:ebq$qrNIKHA.4432@TK2MSFTNGP05.phx.gbl...<!--coloro:green--><span style="color:green <!--/coloro-->
    >> "liyong" <liyong@cyberresource.com.cn> wrote in message
    >> news:OZoGQLLIKHA.4708@TK2MSFTNGP03.phx.gbl...<!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >>> Hello,
    >>>
    >>> I am try to using LDAP get exchange 2007 configuration, currently, I am
    >>> using LDAP browser ( a free tool) see the configurations saved in Active
    >>> Directory,
    >>> (there are many infomations of exchange2007 saved in ActiveDirectory,
    >>> You can use
    >>> ldap://your DC name:389/cn=Microsoft
    >>> Exchange,cn=Services,CN=Configuration,DC=ecora,DC=local??base?(objectClass=*)
    >>> as the url to see the infomation tree )
    >>> but I don't know how to get some configurations infomation.
    >>> anyone can provide LDAP paths to get info will be appreciated.
    >>>
    >>> Q1: I don't know how to get the 'Exchange Administrators':
    >>>
    >>> How to operate it in computer:
    >>> Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    >>> Console,
    >>> expend 'Micorsoft Exchange' in left Pane, select 'Organization
    >>> Configuration' node.
    >>> now, right pane will list the 'Exchange Administrators', it has 3
    >>> columns:
    >>> 'Identity', 'Role','Scope'.
    >>>
    >>> I need the 3 column values.
    >>>
    >>> Q2: I don't know how to get the 'Server Configuration':
    >>>
    >>> How to operate it in computer:
    >>> Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    >>> Console,
    >>> expend 'Micorsoft Exchange' in left Pane, select 'Server Configuration'
    >>> node.
    >>> now, right pane will list the 'Server Administrators', it has 3 columns:
    >>> 'Name', 'Role','Version'.
    >>>
    >>> I need the 3 column values.
    >>>
    >>> Q3: I don't know how to get the 'Recipient Configuration':
    >>>
    >>> How to operate it in computer:
    >>> Start->Programs->Microsoft Exchange Server 2007->Exchange Management
    >>> Console,
    >>> expend 'Micorsoft Exchange' in left Pane, select 'Recipient
    >>> Configuration'
    >>> node.
    >>> now, right pane will list the 'Recipient Administrators',it has 5
    >>> columns:
    >>> 'Display Name', 'Alias','Recipient Type Details', 'Primary SMTP
    >>> Address','Organizational Unit'.
    >>>
    >>> I need the 5 column values.
    >>>
    >>> any help will be appreciated.
    >>>
    >>> thanks
    >>>
    >>><!--colorc--><!--/colorc-->
    >>
    >>
    >> For Exchange 2007, all of these values can be derived using Power Shell.
    >> The following are some pointers on how to use it.
    >>
    >> A Primer on the Exchange Management ShellJan 31, 2007 ... The wizards
    >> show you the Exchange Management Shell commands .... For Exchange 2007,
    >> the Microsoft Exchange User Education team .... i saw a great tool based
    >> on powershell for exchange managment called Exchange Tasks 2007 ...
    >>
    >>
    >> Exchange 2007 Powershell commands and tips | tech-informer.comMay 18,
    >> 2007 ... One Response to “Exchange 2007 Powershell commands and tips”.
    >> Jeffrey Bissette UNITED KINGDOM , on February 24th, 2009 at 8:45 am Said:
    >> ...
    >>

    >>
    >> User Administration in Exchange 2007 using Powershell CmdLetsJul 3, 2008
    >> ... User Administration in Exchange 2007 using Powershell CmdLets ...
    >> Powershell commands and even the GUI creates Powershell commands from the
    >> ...
    >>

    >>
    >> The Exchange 2007 Wiki - PowerShell ScriptsDec 10, 2008 ... Wiki for
    >> sharing tips and scripts related to Exchange Server 2007.
    >>

    >>
    >> Otherwise, you can use ADSI vbscripting, which someone else may be able
    >> to better assist with. However, with Exchange, the preferred method is
    >> Power Shell.
    >>
    >> --
    >> Ace
    >>
    >> This posting is provided "AS-IS" with no warranties or guarantees and
    >> confers no rights.
    >>
    >> Please reply back to the newsgroup or forum to benefit from collaboration
    >> among responding engineers, and to help others benefit from your
    >> resolution.
    >>
    >> Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
    >> Microsoft Certified Trainer
    >>
    >> For urgent issues, please contact Microsoft PSS directly. Please check
    >>
    for regional support phone numbers.<!--colorc--><!--/colorc-->
    >
    ><!--colorc--><!--/colorc-->
     
  6. Chris Dent

    Chris Dent Guest

    Re: Questions about how to using LDAP get the configurations of exchange2007


    Each of these items is available using the CmdLets from the Exchange
    2007 Management Shell:

    1. This will return the values exactly as you've requested:

    Get-ExchangeAdministrator

    2. This one has a bit more information, if you run it like this you'll see:

    Get-ExchangeServer

    If you only want the selected columns then:

    Get-ExchangeServer | Select-Object Name, ServerRole, AdminDisplayVersion

    3. This splits up a bit because the node you select shows all possible
    recipients (Mailboxes, Groups, Contacts). Each of these has more than
    you've requested so we're limiting the returned data with Select-Object.

    For Users:

    Get-Mailbox | Select-Object DisplayName, Alias, `
    RecipientTypeDetails, WindowsEmailAddress, OrganizationalUnit

    For Contacts:

    Get-MailContact | Select-Object DisplayName, Alias, `
    RecipientTypeDetails, WindowsEmailAddress, OrganizationalUnit

    For Distribution Groups:

    Get-DistributionGroup | Select-Object DisplayName, Alias, `
    RecipientTypeDetails, WindowsEmailAddress, OrganizationalUnit

    HTH

    Chris
     
  7. "Chris Dent" <chris@noreply.null> wrote in message
    news:%23Hf3%23xjIKHA.1252@TK2MSFTNGP04.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    > Each of these items is available using the CmdLets from the Exchange 2007
    > Management Shell:
    >
    > 1. This will return the values exactly as you've requested:
    >
    > Get-ExchangeAdministrator
    >
    > 2. This one has a bit more information, if you run it like this you'll
    > see:
    >
    > Get-ExchangeServer
    >
    > If you only want the selected columns then:
    >
    > Get-ExchangeServer | Select-Object Name, ServerRole, AdminDisplayVersion
    >
    > 3. This splits up a bit because the node you select shows all possible
    > recipients (Mailboxes, Groups, Contacts). Each of these has more than
    > you've requested so we're limiting the returned data with Select-Object.
    >
    > For Users:
    >
    > Get-Mailbox | Select-Object DisplayName, Alias, `
    > RecipientTypeDetails, WindowsEmailAddress, OrganizationalUnit
    >
    > For Contacts:
    >
    > Get-MailContact | Select-Object DisplayName, Alias, `
    > RecipientTypeDetails, WindowsEmailAddress, OrganizationalUnit
    >
    > For Distribution Groups:
    >
    > Get-DistributionGroup | Select-Object DisplayName, Alias, `
    > RecipientTypeDetails, WindowsEmailAddress, OrganizationalUnit
    >
    > HTH
    >
    > Chris<!--colorc--><!--/colorc-->


    Hi Chris,

    I think the OP is trying to incorporate that somehow in his script or app. I
    hope it helps!

    Ace
     
  8. Chris Dent

    Chris Dent Guest

    Re: Questions about how to using LDAP get the configurations of exchange2007


    Ah sorry, yes I see. I didn't read far enough back in the thread.
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Could we use it(Exchange 2007 command shell) in ourself applications?<!--colorc--><!--/colorc-->

    You can call PowerShell CmdLets using .NET as part of the
    System.Management.Automation class.

    For that to work you would need to be able to use .NET from whatever
    language you're coding the application in, and you would need the
    Exchange Management Tools installed so the code can access the CmdLets.

    That means grabbing the .NET Framework 3.0 SDK (or better), and adding a
    reference to System.Management.Automation from C:\Program
    Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0 folder.

    HTH

    Chris
     
  9. Chris Dent

    Chris Dent Guest

    Re: Questions about how to using LDAP get the configurations of exchange2007


    By the way, please do yell if you need code samples for that, I have
    some demonstrative code kicking around somewhere.

    Chris
     
  10. liyong

    liyong Guest

    Re: Questions about how to using LDAP get the configurations of exchange 2007


    "Chris Dent" <chris@noreply.null>
    ??????:OgrWPRwIKHA.3000@TK2MSFTNGP04.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    > By the way, please do yell if you need code samples for that, I have some
    > demonstrative code kicking around somewhere.
    >
    > Chris<!--colorc--><!--/colorc-->

    thank Chris, I am researching how to intergrated the PowerShell to our
    program in the past days.
    I found we must make sure the client has PowerShell installed, or it can not
    work. this need do more changes
    in our installer. we are evaluating the risks.

    , please give me some demonstrative code .

    thanks a lot.
     
  11. Chris Dent

    Chris Dent Guest

    Re: Questions about how to using LDAP get the configurations of exchange2007


    Sure, here you go. It's basic, very little error control here. I went
    for an implementation of "Get-ExchangeAdministrator", the returned data
    isn't pretty, but I'm sure you're better at that aspect than I [​IMG]


    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Management;
    using System.Management.Automation;
    using System.Management.Automation.Runspaces;

    namespace CSharp_CallPSCmdLet
    {
    class Program
    {
    static void Main(string[] args)
    {
    // Create a RunspaceConfiguration object to load the snap-in
    RunspaceConfiguration RCConfig =
    RunspaceConfiguration.Create();
    PSSnapInException SnapInException;

    RCConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin",
    out SnapInException);

    // Create a Runspace to execute code
    Runspace RC = RunspaceFactory.CreateRunspace(RCConfig);
    RC.Open();
    Pipeline RCPipeline = RC.CreatePipeline();

    // Create the command to execute in the pipeline
    Command GetExchangeAdministrator = new
    Command("Get-ExchangeAdministrator");
    RCPipeline.Commands.Add(GetExchangeAdministrator);

    // Create a collection to store the results
    ICollection<PSObject> psObjectArray = RCPipeline.Invoke();

    // Loop through the results
    foreach (PSObject psObject in psObjectArray)
    {
    Console.WriteLine("Identity: {0}",
    psObject.Members["Identity"].Value.ToString());
    Console.WriteLine("Scope: {0}",
    psObject.Members["Scope"].Value.ToString());
    Console.WriteLine("Role: {0}",
    psObject.Members["Role"].Value.ToString());
    }
    }
    }
    }
     
  12. liyong

    liyong Guest

    Re: Questions about how to using LDAP get the configurations of exchange 2007

    thanks Chris
    I have problems:
    In my tested domain, there are have 2 exchange 2007 servers,
    it seems only when I run the test exe on the exchange server machine, it can
    works well. but on others machine,
    it can not work.because they not install Powershell or exchange.

    In my real envirement, it cannot sure the applications can run on the
    exchange machine.

    I think ADSI (LDAP) is another valid way to access the configuration,
    because we can aceess this API in most of the computers.
    but I don't know the correct path to access it.

    Do you have any infomation about how to use ADSI(LDAP) access the
    configurations of Exchange 2007?
     
  13. Chris Dent

    Chris Dent Guest

    Re: Questions about how to using LDAP get the configurations of exchange2007


    I wasn't expecting you to run applications on Exchange, but both
    PowerShell and the Exchange Management Shell can be installed elsewhere.

    Anyway, not to worry, we can explore other approaches.

    1.

    This looks to do two things.

    First it enumerates the membership of the groups in "Microsoft Exchange
    Security Groups". That's pretty simple to do in LDAP.

    Then it evaluates the Security Descriptor on each Exchange Server under
    the Configuration tree. I don't have any rights configured there so I
    can't tell you what it's going to display. In general that's more
    complex, but is still possible via LDAP.

    2.

    Name is easy [​IMG]

    Server Role is potentially defined by this attribute:



    We'd have to reverse engineer it's values unless you can find a
    reference for it. That assumes it's anything other than 0 for Exchange 2007.

    Version is stored in the serialNumber attribute, so easily accessible.

    3.

    All available in LDAP with little fuss.

    RecipientType is "msExchRecipientTypeDetails" and is the most difficult
    of those.

    If you're using a DirectorySearcher it's less of a problem because it's
    automatically marshalled to Int64 in the result set. If you access the
    object as a DirectoryEntry (or through any direct ADSI interface) you'll
    be presented with an IADsLargeInteger, a ComObject, see:



    We could so with some values for msExchRecipientTypeDetails:

    UserMailbox: 1
    SharedMailbox: 4
    RoomMailbox: 16
    EquipmentMailbox: 32

    I think we might find Mail Enabled User (rather than Mailbox Enabled
    User) is missing from that, but I don't have any of those either.

    Any thoughts on these?

    Chris



    liyong wrote:<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > thanks Chris
    > I have problems:
    > In my tested domain, there are have 2 exchange 2007 servers,
    > it seems only when I run the test exe on the exchange server machine, it can
    > works well. but on others machine,
    > it can not work.because they not install Powershell or exchange.
    >
    > In my real envirement, it cannot sure the applications can run on the
    > exchange machine.
    >
    > I think ADSI (LDAP) is another valid way to access the configuration,
    > because we can aceess this API in most of the computers.
    > but I don't know the correct path to access it.
    >
    > Do you have any infomation about how to use ADSI(LDAP) access the
    > configurations of Exchange 2007?<!--colorc--><!--/colorc-->
     

Share This Page