Questions tagged [exchange-server]

Questions about automation and APIs related to Microsoft's Enterprise level messaging server.

Microsoft Exchange Server is the server side of a client–server, collaborative application product developed by Microsoft. It is part of the Microsoft Servers line of server products and is used by enterprises using Microsoft infrastructure products. Exchange's major features consist of electronic mail, calendaring, contacts and tasks; support for mobile and web-based access to information; and support for data storage.

Use this tag on programming questions related to the use of this product - questions on installation, maintenance and configuration are better asked on Server Fault, while questions on the use and configuration of Outlook or other email clients are better directed to Super User.

See also:

4797 questions
1
vote
1 answer

Packet Sniffing Outlook - > Exchange using MAPI

I am trying to implement packet sniffing for traffic from an Outlook client to an Exchange server. This communication uses MAPI over HTTPS (Outlook anywhere) as far as I can tell. I don't think I am using MAPI over RPC. Traffic comes across as TLS…
Civerooni
  • 51
  • 8
1
vote
2 answers

Want to use IF/Else statement in Try/Catch block

I want to use If/Else statement in Try/Catch block. Below is my code. Here I am able catch the error when script fails but when its successful I want to stamp a datetime in .csv file but its not working. Please help. Try { $hostcomputer =…
Jeetcu
  • 43
  • 3
  • 10
1
vote
1 answer

Missing command Get-ReceiveConnector in Exchange 2016 with Mailbox role

I have a new installation of Exchange 2016 Enterprise, Mailbox role (single server, no other servers in the infrastructure). Everything works fine but I need to make some configurations for which I need the commands Get-ReceiveConnector and…
Vladimir
  • 1,425
  • 16
  • 31
1
vote
0 answers

If condition not working with DateTime entries

I am not able to get the correct report with the below part of code. Here's what I am doing: Importing .csv file into variable which contains UserName, LastSucessSync (date), Model. With below foreach loop this will format the .html report and…
Jeetcu
  • 43
  • 3
  • 10
1
vote
1 answer

Adding tags/category to exchange emails via python

I'm using python 3, and I want to add categories to certain emails. I've identified that the categories appear under a 'keywords' section in the email. This way, I'm able to identify which emails have had a category set or not. import imaplib import…
Sam K.
  • 35
  • 5
1
vote
2 answers

Troubles with substring, trim, trimend

I'm trying to take an array of email addresses (in the form of username@company.com) which is generated from: $users = get-MSOLUser -All | where {$_.isLicensed -eq "TRUE" -and $_.Licenses.AccountSKUID -eq "my_license"} | select…
AB_MS3
  • 77
  • 1
  • 3
  • 14
1
vote
1 answer

Setting up new Exchange Online users on RDS servers

My company is currently migrating our on prem Exchange users to the hosted Exchange Online platform. Migrating users is easy but we have hit a snag when on boarding new users. Our environment has multiple RDS servers. In the past we would setup a…
1
vote
3 answers

GoLang wrapper for EWS / ExchangeService

I have some C# code that uses the ExchangeService (via Microsoft.Exchange.WebServices.dll) object to do some typical email tasks (e.g. fetch email, send email). I'd like to be able to do the same thing, but using Go instead of C#. What is the most…
mwag
  • 3,557
  • 31
  • 38
1
vote
2 answers

Iterate through mailboxes on Get-MobileDeviceStatistics

I am working on a script to remove all EAS devices from our exchange server. (To force use of REST-based only clients) # Login $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri…
Mansueli
  • 6,223
  • 8
  • 33
  • 57
1
vote
1 answer

Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException Trying to Read Email From EWS C#

I'm Developing a Console Application for testing purpose in C#. This Application is made to read the Email from MS Exchange Web Service server2007. But I can't get it working for a while. should I include some code in the App.config? which one!…
1
vote
0 answers

have script wait until mailbox is backedup

I have built a function in powershell that will backup an exchange mailbox. In Simplistic terms... New-MailboxExportRequest -Mailbox $Mailbox.Name -FilePath…
1
vote
1 answer

Configure Mailserver manual with Plesk Host

We do some easy hosting for our clients. One of them is using a self-hosted Mail Exchange server that needs an SMTP on our server. So we have the MX DNS entries pointing to their server, and postfix running with one mailbox for sending Emails. Now…
mmoollllee
  • 63
  • 1
  • 1
  • 6
1
vote
2 answers

Access Exchange Using Powershell in C#

Im trying to access the exchange server using powershell in c# Here is the code i am trying to use WSManConnectionInfo ConnectionInfo = new WSManConnectionInfo(new Uri(@"http://myexchangeserver.com"),…
New Bee
  • 991
  • 1
  • 13
  • 24
1
vote
2 answers

Ways to send E-Mails over MS Exchange with VBScript

I have to write a VBScript which will run on a Windows Server 03 (no Office, SMTP, etc. installed - like it's a fresh installation). This script should send E-Mails over an MS Exchange Server (on another server). So now I have a meeting with the…
Gregor
  • 1,691
  • 1
  • 20
  • 22
1
vote
0 answers

Performance comparison SyncFolderItems vs. FindItem in EWS

There are two ways to get changes from Exchange using EWS: 1. Use SyncFolderItems to get a list of changed items 2. Use FindItem to get a list of changed items (filtered by modify time) I just need to know new and modified items, not the deleted…
GWNJ
  • 11
  • 2
1 2 3
99
100