exchange-server

Best way to access Exchange using PHP?

感情迁移 提交于 2019-12-28 02:29:11
问题 I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server. I've written up this functionality a few times before and have always used WebDAV to do it, but now I'm leaning away from that. I will be running the site on IIS OR Apache (no preference) on Windows server 2008. A few things I would need to do include adding contacts to a given user's address book, sending emails as a given user and running reports on

Automating Microsoft FOPE (Forefront Online Protection for Exchange) searches

落爺英雄遲暮 提交于 2019-12-25 18:15:16
问题 So I have been working on a way to automate searches on FOPE. Microsoft annoyingly doesn't provide an API to access the data that it gathers so I have to emulate a webbrowser with all the quirks of logging in, cookies, scrapping pages and then using that data to further scrape certain links off of it. The last few parts I should be able to get, but the setup that MS uses for FOPE just perplexes me. I'll post what I know and what I have so hopefully some other admin or coder can help. Maybe

Using C# To Return Data From PowerShell

谁说胖子不能爱 提交于 2019-12-25 10:32:08
问题 I am trying to return a PrimarySMTPAddress to a variable, in Powershell the code I run is this: Get-Mailbox -identity UserName | select PrimarySMTPAddress And it returns the correct value, I want to get this in my C# Code, I have done the following: string getPrimarySMTP = "Get-Mailbox -identity " + username + "| select PrimarySMTPAddress"; var runSpace = RunspaceFactory.CreateRunspace(Utility.CreateConnectionInfo()); runSpace.Open(); var pipeline = runSpace.CreatePipeline(); pipeline

Including a LOCATION field in an .ics calendar file stops Calendar on MacOS El Capitan communicating with Exchange Server

好久不见. 提交于 2019-12-25 09:47:52
问题 This question relates to a question I asked previously (Importing .ics into Calendar on Mac (El Capitan) breaks connection to Exchange Server). I have written a Python script to generate an .ics file that can be used to transfer calendar events into an Exchange calendar in the Calendar app on MacOSX (El Capitan). The .ics file produced validates using http://severinghaus.org/projects/icv/. The events are imported into a separate calendar rather than into the default Exchange calendar and

How to skip empty cells in a csv when using PowerShell to import Email Addresses?

家住魔仙堡 提交于 2019-12-25 08:34:21
问题 I am trying to run the following script to import email addresses in powershell: Import-CSV "C:\AliasesTest.csv" | foreach-object { Set-Mailbox -Display Name $_.Name -EmailAddresses @{add=$_.Alias1,$_.Alias2,$_Alias3}} It works fine, unless the csv has an empty cell under one of the Alias columns, at which point the following error is produced: "The address '' is invalid: "" isn't a valid SMTP address..: How can I construct my script to just ignore empty cells when it comes across them? 回答1:

How to get public folders from one Public folder mailbox in Exchange 2013 via EWS

柔情痞子 提交于 2019-12-25 06:55:44
问题 I can retrieve public folders stored in specific Public folder mailbox using this powershell command: Get-PublicFolder –GetChildren | Where { $ _.ContentMailboxName –eq “PFMailbox1” } (But I don't want to use remote PowerShell) I'm not able to do this using EWS. My first idea was to get all public folders and then sort them according Public folder mailboxes. But there is probably no Extended MAPI property which contains public folder mailbox name (similar to ContentMailboxName powershell

WebDav And Exchange2007 HTTP1.1 404 Ressource not Found!

99封情书 提交于 2019-12-25 04:35:11
问题 i have Exchange2007. and i am using the url: "https://exchange2007.exchange.server.com/Exchange/username/calendar"; 'calendar', or 'mailbox'( in your language! example, "boite de reception" in french or "calendário" in portuguese) with that url that i'm using i can list my ressources, but can't send a mail or write an appointement! why?!? See that i get a response of the server 207multistatus and ok, but the return a HTTP/1.1 404 Resource Not Found i wish a 201 created!!! (for my appointement

Getting null in e.MailItem.Message.CalendarPart in exchange transport agent

混江龙づ霸主 提交于 2019-12-25 04:24:36
问题 I am developing a custom transport agent for Exchange 2013. I am getting null in e.MailItem.Message.CalendarPart though I am sending a meeting request. if (e.MailItem.Message.CalendarPart != null) { LocationProcessorStrategy.AddLocationInBody(e.MailItem.Message); } else { e.MailItem.Message.Subject += " [There is no calendar part - added by agent.]"; } e.MailItem.Message.MapiMessageClass is giving me the value "IPM.Schedule.Meeting.Request" but CalendarPart is null. 回答1: That generally means

Exchange Powershell: Get-MailboxFolderPermission for all calendars

纵饮孤独 提交于 2019-12-25 03:28:32
问题 I have been working on a script to display permissions for all mailboxes at once, for a certain user at a time. Unfortunately, since the -Identity attribute in the Get-MailboxFolderPermission command doesn't accept wildcards, this is getting a bit complicated and messy. I have started using an array to store all the mailboxes, so I can loop through it and run the command on each of them, but I've been unable to make this work because I haven't been able to reduce any of my outputs to just the

Exchange Web Services - Organizer Property

老子叫甜甜 提交于 2019-12-25 03:24:23
问题 I am using Exchange Web Services trying to find the Organizer of the meeting's email address I have tried using Appoint.Organizer.Address but some of the properties are null (see image). How do I get the email address of the organizer? Link to image (sorry not enough rep to embed) http://i.stack.imgur.com/wSv2r.png 回答1: What operation are you using ? If you have just used FindItems then that's what you would expected because only the displayName of the Sender (which is the Organizer) is