exchange-server

Powershell to Exchange 2013 - Restricted language mode error

拥有回忆 提交于 2019-12-18 17:22:36
问题 I'm working on a C# web service that will be deployed on an Exchange 2013 server. This service will be responsible for running powershell commands to configure Exchange. I connect via a runspace created like this const string shellUri = "http://schemas.microsoft.com/powershell/microsoft.exchange"; var uri = new Uri(_exchangeConnectionUri); var credentials = (PSCredential)null; // Windows authentication var connectionInfo = new WSManConnectionInfo(uri, shellUri, credentials); connectionInfo

Exchange Powershell - How to invoke Exchange 2010 module from inside script?

ぐ巨炮叔叔 提交于 2019-12-18 15:49:23
问题 I'm writing a script that does a number of things with AD and Exchange and just got to the part of the GUI where I need to start working with Exchange but don't see where I can manually specify to include the Exchange module. The normal process I'm familiar with is import-module activedirectory but import-module exchange doesn't work. I performed a Get-Module -ListAvailable | Select Name, and don't see anything indicating Exchange. However, the Exchange Management Shell IS loaded on the

Microsoft.Exchange.WebServices is not working in VS2010

白昼怎懂夜的黑 提交于 2019-12-18 14:55:11
问题 I'n using EWS ExchangeService to read emails from outlook... I've coded the in Console project and in VS2008... Everything works fine as it is.. I can read the emails. To become more familair with VS2010 I created a console project and copied the copied to VS2010 project. so I added the referene "Microsoft.Exchange.WebServices" (Version 14.2.51.0) in Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll folder. Everything works as it is, so I see the intellisence, I see the

Easiest way to compose Outlook 2010 mail from Delphi?

假装没事ソ 提交于 2019-12-18 13:38:33
问题 Some of our applications which work fine with different ways of email integration, using mailto: , simulated "Send To...", and SMTP in Windows 2000 and 2003 environments, now move to a new Windows 2008 system with Exchange 2010 and Outlook 2010 clients. We have one use case where the application creates a new mail, sets recipient(s) and subject, adds one or more attachments and then opens it in the default mail client so it can be edited by the user before sending. Do you know a solution

Getting started with Exchange Web Services 2010

放肆的年华 提交于 2019-12-18 10:10:37
问题 I've been tasked with writing a SOAP web-service in .Net to be middleware between EWS2010 and an application server that previously used WebDAV to connect to Exchange. ( As I understand it, WebDAV is going away with EWS2010, so the application server will no longer be able to connect as it previously did, and it is exponentially harder to connect to EWS without WebDAV. The theory is that doing it in .Net should be easier than anything else... Right?! ) My end goal is to be able to get and

Exchange Online - Get-UserPhoto - how to catch non terminating error?

不问归期 提交于 2019-12-18 07:08:52
问题 I'm trying to export a list of all users with no photo from our Exchange Online account using powershell. I cannot get it to work and have tried various methods. Get-UserPhoto returns this exception when there is no profile present. Microsoft.Exchange.Data.Storage.UserPhotoNotFoundException: There is no photo stored here. First of all I tried use Errorvariable against the command but received: A variable that cannot be referenced in restricted language mode or a Data section is being

Running a powershell command in C# errors with, “Cannot invoke this function because the current host does not implement it”

夙愿已清 提交于 2019-12-18 06:49:34
问题 I have an application that I use to run Exchange Powershell commands inside C# code like below. This is an example of the relevant lines I use to run the powershell command. RunspaceConfiguration rsConfig = RunspaceConfiguration.Create(); PSSnapInException snapInException = null; //load Exchange shell rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.E2010", out snapInException); Runspace runSpace = RunspaceFactory.CreateRunspace(rsConfig); //open runspace runSpace.Open(); /

Running a powershell command in C# errors with, “Cannot invoke this function because the current host does not implement it”

徘徊边缘 提交于 2019-12-18 06:49:27
问题 I have an application that I use to run Exchange Powershell commands inside C# code like below. This is an example of the relevant lines I use to run the powershell command. RunspaceConfiguration rsConfig = RunspaceConfiguration.Create(); PSSnapInException snapInException = null; //load Exchange shell rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.E2010", out snapInException); Runspace runSpace = RunspaceFactory.CreateRunspace(rsConfig); //open runspace runSpace.Open(); /

Exchange web services: why is ItemId not constant?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 05:46:11
问题 I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database. I wanted to use the ItemID to make the link between this metadata and a specific email, and I have just discovered that this ItemId is not constant. For example, if the email is moved from a public folder to another, it will receive another ItemId. That means, that the link between the email and the associated metadata is lost. So, the

CodeIgniter SMTP email message - characters replaced with equal signs

混江龙づ霸主 提交于 2019-12-18 03:24:24
问题 I'm using the CodeIgniter email library to send emails using our Exchange server. The problem I get is that the content of the email gets messed up. There are some words that get replaced with equal signs "=", I tried 2 different Exchange servers (they are in different locations and have no relation what so ever) and I still get the same issue. If I use any other server as an SMTP server to send emails everything works fine and the content stays intact and unchanged. Content before sending: