exchange-server

How do I get address lists (NOT global) using Exchange WebServices in C#

怎甘沉沦 提交于 2019-12-14 03:19:23
问题 the web shows dozens of examples to query the exchange's global address list but i want to query the specific address lists! So every user in our Enterprise is ofcourse listed in our global address list but i want to query the address list of a specific company within our Enterprise. In the example below, Aswebo, Cosimco, etc.. are address lists. How do I list these address lists? How do I list the people within these address lists? 回答1: I don't have exchange setup to test this code, so it

Programmatically create a Distribution Group in Active Directory

試著忘記壹切 提交于 2019-12-14 01:12:10
问题 I have a Windows Domain here that runs Exchange 2007, and I need to programmatically create new Mailing Lists. From what I could gather so far, Exchange mailing lists are just normal AD Groups, so I mainly have to worry about the interaction with AD. I used the System.DirectoryService namespace to query AD, but I'm not sure what the correct way would be to create a Distribution Group here. Especially it has to be mail-enabled and show up in the Outlook address book, so I don't know if I need

Dynamic distribution lists in exchange 2010

时光总嘲笑我的痴心妄想 提交于 2019-12-13 21:02:10
问题 I have been creating a number of dynamic distribution list for groups and group leaders. Each of our groups has a "user" created in AD that is used as a contact that can be searched for in Outlook and other Ldap applications. All of these users have a last name of "department", so I can create a dynamic distribution list based on this property and the list will contain the group email address for all the groups. But I also want to make a list of all managers of the groups. so it needs to be a

PHP Exchange Web Services - get message body

人走茶凉 提交于 2019-12-13 19:40:46
问题 I'm using a PHP EWS library, and took this example to get a list of messages, which works perfectly. It pulls through details such as the sender, receiver, subject, time etc. I tried looking through all the library, but I can't workout how to pull through the message body and attachments. Any ideas? 回答1: It is well described in PHP EWS wiki, right here: https://github.com/jamesiarmes/php-ews/wiki/Email-:-Retrieve-All-Email-Attachments Edit: use whole example linked above to fetch email

Exchange EWS Managed API 2.0 get by date

六眼飞鱼酱① 提交于 2019-12-13 18:07:08
问题 Im using EWS Managed API to communicate between my c# project and our Exchange 2010 server. I use this code to get all mails in the inbox from now and three days back. var ews = new ExchangeService(ExchangeVersion.Exchange2010_SP1); ews.Credentials = new NetworkCredential(usr, psw, dmn); ews.AutodiscoverUrl(url); PropertySet itempropertyset = new PropertySet(BasePropertySet.FirstClassProperties); itempropertyset.RequestedBodyType = BodyType.Text; ItemView view = new ItemView(int.MaxValue);

Using Delegates with Exchange Web Services

旧巷老猫 提交于 2019-12-13 17:25:31
问题 Has anyone used delegates with exchnage web services? I would like one user to be able to control other users' calendars in Exchange. I'm finding this problem to be a little tricky, and I'd like to see how others have been able to get it to work properly. 回答1: I'm just getting started here, but i managed to get access to Resource calendars via a delegate account. I used the recommendations from this article about delegate account and resource accounts. (Resource accounts are tricky because

Is there a REST (Graph or otherwise) equivalent of Add-MailboxPermission?

蹲街弑〆低调 提交于 2019-12-13 09:19:50
问题 Right now I have a PS script that is checking for mailbox permissions and if they are missing, the permissions are added. From C#, would like to call the equivalent of: Get-MailboxPermission and if needed, add permissions like: Add-MailboxPermission -Identity $email -User $AdminUserName -AccessRights fullAccess -InheritanceType All even if I can find the equivalent of Add-MailboxPermission that would do it. Cannot seem to find a REST equivalent or even a way with the GraphServiceClient. I

How to have two separated contacts with same email address?

拈花ヽ惹草 提交于 2019-12-13 07:09:21
问题 Using Exchange 2013 and Outlook 2013, I need to have two separated contacts with same email address. What I've seen is once I create a contact with an email address, for the second contact (even though I choose to create a new contact instead of update the existing one) Outlook merges two contacts details. Now the question is, is this doable at all? Can I have two or more contacts sharing same email address but having isolated details? In fact, I'm using ews managed API to do this

Get all calendar events for a specific user

被刻印的时光 ゝ 提交于 2019-12-13 05:06:17
问题 As part of creating a service for syncing an internal application's calendar with Outlook Calendar (Exchange) I need a way to get all of the events from the calendars of a list of users. Through EWS I can get access to a user's calendar with their credentials but I won't have access to the password of the users I need to get the calendar's for. Is there any way to get at any user's data using admin credentials and that user's mail address? 回答1: Answering my own questions here but the answer

How can I run command in Microsoft Exchange Server Powershell through Python script?

邮差的信 提交于 2019-12-13 04:47:50
问题 I want to check the number of mailbox in Microsoft Exchange Server. This command works fine in standard cmd.exe: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto ; Get-Mailbox | Measure-Object" Output is ... Count : 3 Average : Sum : Maximum : Minimum : Property : Then I am going to code it in Python, using "-ExecutionPolicy RemoteSigned": cmd = "C:\\Windows\\System32\