exchange-server-2010

API equivalent for New-MailContact

百般思念 提交于 2020-03-03 07:27:25
问题 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. 回答1: 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

API equivalent for New-MailContact

人盡茶涼 提交于 2020-03-03 07:27:06
问题 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. 回答1: 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

EWS Managed API - How to copy items from one mailbox to other

只愿长相守 提交于 2020-01-14 14:39:31
问题 I am writing an application(C#) to sync contacts,appointments,tasks etc from one mailbox to other. I am able to retrieve changes to these items using SyncFolderItems but could not find a way to copy the changes to a different mailbox. It looks like I have to create a new item for each of these types on the destination mailbox. If that is the case how do I get all the properties on the source item onto the new item on the destination. I am currently using exchange 2007 sp1 environment and want

read email using exchange web services

本秂侑毒 提交于 2020-01-11 02:07:25
问题 This is my scenario: I have to read email from exchange 2010 sp2 accounts. I have to use Exchange Web Services, POP3 and IMAP are blocked. I have to test my app in an environment where people can access their accounts through a web browser only in the intranet. I can't debug my app directly to this intranet. I have this snippet to access an account: private void Dowork() { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); string dominio = "domain"; string

read email using exchange web services

与世无争的帅哥 提交于 2020-01-11 02:07:06
问题 This is my scenario: I have to read email from exchange 2010 sp2 accounts. I have to use Exchange Web Services, POP3 and IMAP are blocked. I have to test my app in an environment where people can access their accounts through a web browser only in the intranet. I can't debug my app directly to this intranet. I have this snippet to access an account: private void Dowork() { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); string dominio = "domain"; string

How to get DatabaseCopies from MailboxDatabase programmatically in C# (wrapped ExchangeMangementShell cmdlets in c#)?

烂漫一生 提交于 2020-01-06 11:01:17
问题 I am wrapping ExchangeManagementShell Cmdlets in C#, to programmatically execute cmdlets (Please refer to __http://social.msdn.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/155504b3-ffe3-4bdf-887a-1e61842a8697) I know the "databasecopies" property of mailboxdatabase contains copies. But i am not sure how to parse the deserilzied databasecopies data to get the properites. Please see the below code snippet. I am basically parsing Get-MailboxDatabase cmdlet results to get the

How to set/access outlook DoNotForward property in Microsoft exchange service

给你一囗甜甜゛ 提交于 2020-01-06 03:45:31
问题 Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("abc", "xyz", "bbb"); service.AutodiscoverUrl("xyz@abc.com",

How to set/access outlook DoNotForward property in Microsoft exchange service

拜拜、爱过 提交于 2020-01-06 03:45:25
问题 Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("abc", "xyz", "bbb"); service.AutodiscoverUrl("xyz@abc.com",

Create mailbox on exchange 2010 using C#

若如初见. 提交于 2020-01-02 20:18:12
问题 I am trying to create a user mailbox on Exchange 2010 through my C# windows app. Here is my code PSCredential creds = new PSCredential("user id", StringToSecureString("password")); System.Uri uri = new Uri("http://servername/powershell?serializationLevel=Full"); Runspace runspace = RunspaceFactory.CreateRunspace(); PowerShell powershell = PowerShell.Create(); PSCommand command = new PSCommand(); command.AddCommand("New-PSSession"); command.AddParameter("ConfigurationName", "Microsoft.Exchange

Determining version of Exchange server on the system using C#

此生再无相见时 提交于 2019-12-30 10:36:11
问题 Is there a way to detect which version of Exchange Server is running (2007 or 2010) via c#? 回答1: Your best bet would be to use WMI 回答2: There is VBScript here that gets the version for all Exchange Servers in the domain using WMI and AD. You could convert this logic to the appropriate .Net classes if this is not usable as is. '**************************************************************************** ' This script created by Chrissy LeMaire (clemaire@gmail.com) ' Website: http://netnerds