等同于New-MailContact的API [英] API equivalent for New-MailContact

查看:109
本文介绍了等同于New-MailContact的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

New-MailContact cmdlet是否有等效的API(例如EWS),这使我可以从现有的AD联系人创建Exchange 2010邮件联系人?我知道我可以调用PSSession,但是我需要一个(i)可以远程工作并且(ii)不需要管理特权,即i的解决方案. e.必须可以通过ACL或角色进行配置.

Is there an API equivalent (like EWS) for the New-MailContact cmdlet, which would allow me to create an Exchange 2010 mail contact from an existing AD contact? I know that I could invoke a PSSession, but I need a solution that (i) works remote and (ii) does not require admin privileges, i. e. must be configurable via ACLs or roles.

推荐答案

我很确定没有.但是,New-MailContact命令行开关实际上只是在更改AD对象上的属性.因此,您可以使用LDAP命令对AD对象进行相同的修改.这有点不安全,因为Microsoft可能会更改下一个版本的Exchange中邮件联系人的表示方式,并且您的代码也必须进行相应的更改.

I'm pretty sure there's not. However, the New-MailContact commandlet is really only changing attributes on an AD object. Therefore you can use LDAP commands to make the same modifications to the AD object. This is a little bit unsafe because Microsoft may change how a mail contact is represented in the next version of Exchange and your code would have to change accordingly.

我认为您最好的选择是创建一个Web服务,该服务接受您要执行的操作的输入.然后让Web服务运行New-MailContact.

I think your best bet here would be to create a web service that accepts input on what you want to do. Then have the web service run New-MailContact.

这篇关于等同于New-MailContact的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆