【问题标题】:Create new user/reset passwords using EWS API使用 EWS API 创建新用户/重置密码
【发布时间】:2023-03-18 18:42:01
【问题描述】:

我很确定我知道这个问题的答案,但我正在寻找验证。一些背景:

  • 我的工作使用运行 2010 SP2 的 Exchange 服务器

  • 它由异地供应商托管

  • 它与我们的活动目录无关,我无法访问他们的目录

  • 我拥有通过 OWA 门户网站进行更改的管理员凭据

到目前为止,使用 EWS,我已经能够执行诸如搜索用户之类的操作,但无法更改任何内容。我希望能够更改密码和创建新帐户。我认为如果我 a) 可以访问供应商的活动目录或 b) 可以远程执行 powershell...但我都没有。

我也发现了这个,但它让我无处可去。使用 admin OWA 管理员用户名和密码登录 https://server/EWS/exchange.asmx 后,我转到了 https://server/ews/Services.wsdl,在那里我看到了这个,但我在其中找不到任何有价值的东西:

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" targetNamespace="http://schemas.microsoft.com/exchange/services/2006/messages">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="UploadItemsSoapIn">
<wsdl:part name="request" element="tns:UploadItems"/>
<wsdl:part name="Impersonation" element="t:ExchangeImpersonation"/>
<wsdl:part name="MailboxCulture" element="t:MailboxCulture"/>
<wsdl:part name="RequestVersion" element="t:RequestServerVersion"/>
</wsdl:message>
...

在这种情况下,是否可以在不使用 OWA 的情况下创建新帐户或更改用户密码?

【问题讨论】:

    标签: c# web-services powershell exchange-server exchangewebservices


    【解决方案1】:

    EWS 是一个邮箱访问 API,只有在密码过期之外无法执行任何管理操作 (CRUD) 或管理用户密码(OWA 利用 IIS 功能来执行此操作)。

    要在 Exchange 2010 中创建邮箱,您需要能够通过远程 Powershell 访问访问 Exchange 管理控制台、Exchange 命令行管理程序,或者您至少应该能够使用 ECP,例如 http://plexhosted.com/billing/knowledgebase/193/How-to-create-a-user-in-the-Exchange-Control-Panel-Exchange-2010.html

    干杯 格伦

    【讨论】:

    • 这就是我害怕的。我可以通过 ECP 手动完成这一切,但我希望能够自动化它。感谢您的回复。
    猜你喜欢
    • 1970-01-01
    • 2021-07-08
    • 2013-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-29
    • 2019-12-25
    • 2011-01-26
    相关资源
    最近更新 更多