FAQ Database Discussion Community


Is there any way to get the list of available equipment in exchange server?

c#,exchange-server
I am trying to get all the resources available in exchange service. To get the list of rooms I am using the below code and it is working fine EmailAddressCollection myRoomLists = service.GetRoomLists(); Now the same way, I want to get the list of equipments ? Please help...

How can i make my email as verified like PayPal

ssl,smtp,server,exchange-server
How can i make my email as verified like PayPal, even though my URL and exchange server is having SSL certificate its still going to spam folder.

Using variables to pass arguments to a cmdlet in powershell

powershell,exchange-server
I'm trying to write a little script in powershell, specifically using exchange. All it does is asks for the sender and/or recipient, and then feeds back the the tracking logs based on a date, either specified or the last 30 days. I'm trying to use a switch to check which...

Need to check the inbox of an Exchange server with C++

c++,powershell,exchange-server,imap
I'm working on a project in C++ to backup and restore email on Microsoft Exchange servers, I'm trying to write automated tests for the restore function. Right now I can create test users, databases, and mailboxes, and can send email between users through the Exchange Admin Powershell. However, Exchange doesn't...

Reuse EWS connection and negotiate authentication for Exchange

c#,exchange-server,ews,exchangewebservices
I am writing a program to dump the contents of numerous mailboxes from an Exchange server using EWS in C#. Using fiddler I noticed that each request I send makes a new connection (tunnel), with a new authentication process being undertaken (using negotiate). My ServerCertificateValidationCallback gets called for every request....

Move emails to SQL Server

.net,sql-server,email,exchange-server
I'm looking to write an application, in .net that will scan a mailbox and put new items into a SQL Server database. Just wondering what the best way to achieve this would be, in terms of an API. Is there an exchange specific one or a 3rd party one I...

EWS Get organizer email from GetUserAvailabilityRequest

xml,soap,exchange-server,ews,exchangewebservices
I'm calling EWS and requesting the User Availability of a room. My response looks like this <CalendarEvent> <StartTime>2015-01-27T16:00:00</StartTime> <EndTime>2015-01-27T17:00:00</EndTime> <BusyType>Busy</BusyType> <CalendarEventDetails> <ID>0000000001FC1580D0DA344...</ID> <Subject>Niclas Hedam</Subject> <Location>room-d2-2pers</Location> <IsMeeting>true</IsMeeting> <IsRecurring>false</IsRecurring>...

Trigger when a certain appointment is changed

triggers,exchange-server
Is there a way to trigger execution of code when a certain appointment is changed in Exchange? I push into Exchange via EWS some appointments created from information stored in our application, and when any of these appointments is deleted or rescheduled, I want to execute my own actions (like,...

Microsoft.Exchange.WebServices.Data.ServiceResponseException : The specified folder could not be found in the store

exchange-server,ews,office365,exchangewebservices
In office365, I am trying to access conversation history folder of another user using EWS api.The user that is trying to access has full access rights of the mailbox . If i connect to the mailbox using owa, i can access the conversation history folder including all other folders. But...

How to decide Bounce Back EmailMessage on Office365?

c#,email,exchange-server,exchangewebservices
I'm using Exchange web service to read email from Office365. The C# program works fine. I can get EmailMessage in Inbox, and get their subject and message body, etc. However, I could not figure out the way to check whether the message is a bounce back message or not. Do...

Create mail in Exchange Online inbox programatically

exchange-server,office365,exchangewebservices
Have been facing an issue since days about EWS. So my scenario is; I was to programmatically sync GMAIL and EXCHANGE ONLINE. So here is what I have done; Connect to Gmail using Gmail API Fetch mail from gmail get the email body, to, from, attachment and all other thing...

Exchange Remote Powershell gets sporadic 'Broken' state

powershell,exchange-server,powershell-remoting
I am trying receive the status of all TransportAgents from an remote Exchange Server through Windows Powershell. I sporadically receive an error, that the The session state is Broken. Once it is broken I need to create a new Session Below a list of the commands I am using (in...

Getting extended property from Exchange/Outlook appointment

c#,outlook,exchange-server,ews
I add an extended property in this way: ExtendedPropertyDefinition ep = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.CalendarAssistant, "AppointmentID", MapiPropertyType.Integer); Appointment newApp = new Appointment(service); newapp.SetExtendedProperty(ep, appID); newApp.Save(SendInvitationsMode.SendToNone); All is good. The appointment shows up in Outlook as expected. Later I tried to search through all Outlook appointment with an AppointmentID assigned by: List<SearchFilter> filters...

Errors after the system state restoration of Exchange server

database,exchange-server,restore
Time ago I made a system state restore of my Exchange server. And now my exchange behaves in a strange way. I unable to run some eseutil command without problem. When I try to run eseutil /r e00 it give me an usage error: Invalid argument. At the same time...

Exchange 2013 ServerSide Event-Handler for Message-Flagging / Followup possible?

exchange-server
Is it possible to hook up some managed code into Exchange 2013 which is triggered when an E-Mail is flagged via Outlook or OWA? I've been fiddling around with transport-agents, but they seem to get invoked only on Mail-Transport events, which is not enough, because the E-Mail won't get through...

Can't get Contact ID from EMAILBOX Object

exchange-server,exchangewebservices,exchange-server-2007,stackexchange-api
I'm trying to get Contact ID from Email box using ResolveName method but it doesn't returns me the Contact ID Related with that contact.   MS reference https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.emailaddress_properties(v=exchg.80).aspx...

How can I export each line of a csv file with poweshell

shell,email,powershell,csv,exchange-server
I am currently moving away from a script we have that queries the Message Queues wmi object within Exchange Server (2007-2013) to run solely within Powershell. Below is my code, albeit not the best (I am still new to this) which I have tested on 2007 and 2013 versions of...

EWS FindItem call returns incorrect EffectiveRights values

exchange-server,ews,exchangewebservices,ewsjavaapi
I'm using a FindItem call to get items (appointments) from Exchange Web Services (EWS). The properties which are fetched are the item Id and the EffectiveRights. The EffectiveRights property often does not contain the correct values. Sometimes, however, the values are correct (using the same code), but I don't know...

How to create notes using EWS Managed API 2.0

c#,exchange-server,ews,exchangewebservices,ews-managed-api
Even looking into MSDN's Exchange 2013 - 101 Code Samples, I could not find an example creating notes using EWS Managed API 2.0. On Folders and items in EWS in Exchange, the most appropriate item type seems to me PostItem but my test failed trying to create such items in...

Download attachment using active sync protocol

outlook,exchange-server
I am able to fetch the mail body & attachment details from server using Sync command. Now I am unable to find a way to download the attachment and show in the screen. Below is my sync command response. <?xml version="1.0" encoding="utf-8"?> <Sync xmlns:email="Email:" xmlns:airsyncbase="AirSyncBase:" xmlns:email2="Email2:" xmlns="AirSync:"> <Collections> <Collection> <SyncKey>334239291</SyncKey>...

Trouble Receiving Emails from Microsoft Exchange

email,smtp,exchange-server,exchange-server-2007
When people try and send me emails from Microsoft Exchange, they get this error. I don't really deal with email servers and I have no idea where to start though. Is this problem our side or their side? Or how would I go about fixing this issue? Delivery has failed...

Exchange Web Services Managed API: is it possible to have an Item other than EmailMessage in the mail folder?

.net,exchange-server,ews,exchangewebservices
We are using the latest version of EWS Managed API and I'd like to know if it is possible to get an Item in the Inbox of type any other than EmailMessageor it's descendants (like MeetingRequest, MeetingCancellation etc? I could not find this in the documentation.

Check if resource is available during selected dates via exchange

vba,loops,exchange-server
I already have a Array of each resource in the distribution list. How do I check each resource in the array is available via exchange server during the start and end time user is requesting? This will be an outlook addin on the ribbon. Public Sub AddElementToStringArray(ByVal stringToAdd As String)...

Exchange 2010 - All maiboxes with auditing enabled

exchange-server,exchange-server-2010
I am trying to return a list of all mailboxes that have auditing enabled. I have tried the below, but it is returning all the users and not just those that have auditing enabled on their mailboxes. Can someone please help. Thanks Get-Mailbox | select Name | where-object {$_.AuditEnabled -eq...

Exchange Shell - SubjectOrBodyContainsWords

powershell,exchange-server
I'm attempting to create a rule per script but I'm unable to proceed because I seem to have reached a too high value... [PS] C:\Users\XXX\Desktop>New-InboxRule -Mailbox "Daniel.XXX" -Name "Test" -SubjectOrBodyContainsWords...

EWS subscriptions “falling off”

c#,exchange-server,ews,exchangewebservices
I'm working on a synchronization system, which synchronizes Outlook with another system. I am subscribing to around 600 mailbox calendars in an Exchange 2013 server. When the subscription is done, I pull the users entire mailboxes, to perform a full synchronization with the other system. This works well. Now the...

EAS Protocol fetch unread mails only

exchange-server,activesync
I am implementing the ActiveSync protocol and currently i am able to fetch emails using Sync command. Right now everytime i execute the sync commands it provides me all mails what i am assuming if i am using same sync key it must returns new mails arrived since my last...

Send a text in message body and not as an attachment

email,outlook,exchange-server,sap,abap
I'm sending the email message from ABAP-report of SAP ECC 6.0 EHP5 to Microsoft Exchange via SMTP. The message reaches user's inbox in Outlook 2013, but it arrives as an attachment instead to be in the body of the message. From the code's point of view, I'm sending the plain...

Get SMTP address from a list of Names (Exchange 2013 powershell)

powershell,exchange-server
I'm trying to get SMTP address's for users who have OWAEnabled. I have what I think are two pieces that do what I want, but I can't figure out how to put them together. Ultimately it will output the SMTP address's to a CSV. Get-CASMailbox -Filter{OWAEnabled -eq $true} | Select-Object...

EWS can not receive push notification from office365

exchange-server,office365,ews,exchangewebservices
I am using EWS api to develop an androd application on tablets to connect with office365. The app poll to office365 server to request the calendar information. However, sometime it is limited by the throttling policy when the app is installed on 15 devices and each device poll with 5-second...

Powershell Exchange Module remote mailbox issue

powershell,azure,active-directory,exchange-server,office365
I have created a scripts that automatically creates a user in Exchange and than adds a license to it from o365 however i need the box at the bottom where it says "automatically update email addresses based on the email address policy applied to this recipient" to automatically be checked...

Microsoft EAS Sync Command

exchange-server,activesync,wbxml
My initial request is POST : /Microsoft-Server-ActiveSync?User=XXXX&DeviceId=XXX&DeviceType=XXX&Cmd=Sync <?xml version="1.0" encoding="utf-8" ?> <airsync:Sync xmlns:airsync="AirSync"> <airsync:Collections> <airsync:Collection> <airsync:SyncKey>0</airsync:SyncKey> <airsync:CollectionId>5</airsync:CollectionId> </airsync:Collection> </airsync:Collections> </airsync:Sync> And i am getting response <Sync xmlns="AirSync"> <Status...

converting string to number in powershell

powershell,exchange-server
I am trying to convert a string to a 2 decimal place value I have a script that has a line of code which is (get-mailboxdatabase xxx -status).databasesize This returns the size something like 1.008 GB (1,082,195,968 bytes) I want to be able to convert this to a number (1.008)...

Get actual delegates

powershell,exchange-server
I have the following script and I am trying to get a list of the actual delegates and remove the servers, etc Get-MailboxPermission -Identity technology.servicespmo | where {($_.user.tostring() -ne "NT AUTHORITY\SELF")-or ($_.user.tostring() -ne "server\AdmEnterprise Servers Advance")-or ($_.user.tostring() -ne "server\Domain Admins")-or ($_.user.tostring() -ne "server\Exchange Domain Servers") -or ($_.user.tostring() -ne "server\Exchange Services")...

Trying to use cURL to access local Exchange server

curl,command-line,exchange-server,imap
I'm working on a project that involves a Microsoft Exchange 2013 mail server on my Windows Server 2012 machine. For the project, I need to send, read, and delete emails using cURL, preferably from the command line. The problem is, I'm having trouble connecting to the Exchange server with the...

Modifying EKParticipants (attendees) in EventKit like Sunrise

ios,objective-c,exchange-server,eventkit,ekevent
My goal is to add some invitees to an EKEvent. I've looked into other questions like this, such as this one, but all say that it is essentially impossible to add EKParticipants to an EKEvent programmatically. I do see that the attendees property is read-only, but I see other services...

Exchange web services API - Get all mailboxes

exchange-server,ews
Is there a way to get all the existing mailboxes in exchange? I need this to be able to get all the tasks from all mailboxes. Thanks....

Can't search delegated Inbox

outlook,exchange-server
I have Exchange 2010 server and Outlook 2010 local clients. Some users have delegated the access to their Inboxes to their assistants. It all worked well until recently, without any warning or other issues manifesting my users can't search inside delegated folders. They can access the Inbox and do everything...

strange behavior office 365 contact API

exchange-server,ews,office365
I'm trying to consume the Office 365 contacts api, and I got a strange response every time that I change some of the parameters... For example, accessing the following url https://outlook.office365.com/api/v1.0/me/contacts?$top=10 I get 10 contacts, and an url to the next page https://outlook.office365.com/api/v1.0/me/contacts/?$top=10&$skip=10 Accessing the url above, I get 8...

Add a trusted domain to everyone in exchange

powershell,exchange-server,exchange-server-2010
Currently we have an HR email going out to the all of our staff. By default, the email gets sorted into the junk email for everyone. I'd like to use the PowerShell cmdlet Set-MailboxJunkEmailConfiguration to add the sending domain as a trusted domain to everyone without having to set it...

How get user contacts list from EWS

exchange-server,ews,exchangewebservices
I'm developing web application which is similar to address-book, now I want to create a page with list of user contacts. I already have user email and show out_of_office badge using GetUserOOFSettrings API method. Does the API for getting user's (favorite) contacts list exists? E.g. to get MS Lync contacts...

Can you assign a task to a contact using exchange 2010 EWS Managed API 2.0?

exchange-server,exchangewebservices,exchange-server-2010
I'm struggling to find a way to assign a Task that I'm creating using the EWS Managed API 2.0 to an existing contact. Is there a way to do this using the API? For appointments, you can add an Atendee to the RequiredAtendees collection. Is there something similar to this...

EWS Managed API: Setup user email alias

c#,.net,exchange-server,office365,ews
I am looking into possibility to create or delete email aliases for user emails in Office 365 through EWS Managed API. It can be easily done through UI: https://support.office.com/en-sg/article/Add-an-email-alias-to-a-user-account-cd25a91a-eb1a-4ed7-be94-5517fb5113c2, but unfortunately, I haven't found any methods in Exchange Web Services API to do this. Does anyone know if it's possible?...

Exchange Server 2013 EMail Driver

c#,exchange-server,ews,exchangewebservices,exchange-server-2013
I have a C# program that connects to my Exchange Server 2010 and is able to read every email. I am using the microsoft.exchange.webservices.dll library. The problem is, that this program gives back the following exception on Exchange Server 2013: "The remote server returned an error: (501) Not Implemented." I...

Use Powershell to list all mailbox users contacts from their contact folder with all attributes

powershell,exchange-server,office365
I am on Office 365 and I (Admin of the site) have to run a query that takes a users mailbox (e. g: '[email protected]') and lists all of its contacts from the contact folder with all available attributes like name, email-address and so on. After searching heavily with Google and...

Is Exchange Server 2013 extendable

.net,exchange-server,exchange-server-2013
For a project I'm working on, I need to subscribe to Exchanges server side events. Each time a calendar appointment is created, whether from Outlook or the web ui, I need to access the appointment data (date & time, participants, location, etc) so I can send it to an internal...

Exchange with Powershell - Weird Error

powershell,exchange-server
I input my code and it is throwing an error. The code ran fine and I was able to get it to run through before I tried adding in the dropbox feature. I cant seem to figure out what is wrong with this... Method invocation failed because [System.Reflection.RuntimeAssembly] does not...

Asterisks instead of SMTP codes in response from Microsoft Exchange server

email,smtp,exchange-server,swiftmailer
I'm working on a Laravel 4.2 application that needs to be able to send emails. When the SwiftMailer component contacts the Microsoft Exchange server we use here it's receiving the following reply: * OK The Microsoft Exchange IMAP4 service is ready. * BYE Connection is closed. 13 My understanding is...

Create Exchange Message Items with EWS and mark them for deletion

exchange-server,ews,exchangewebservices
I am using EWS to create items in an Exchange mailbox. I am using the CreateItems method. I am also setting an extended property on the items I create so that it is deleted when that date is reached. The items are created correctly, but they are not deleted at...

Exchange 2010 - Powershell to remove Send On Behalf permission

powershell,exchange-server,send-on-behalf-of
I'm trying to run the command below to remove e Send On Behalf permission, but i'm getting an exception and it removes all the users that have access, instead of the one I specify in my script $owner = "lpeter" $remove = "jdoe" $grantlist = Get-Mailbox $owner -DomainController tordc01 |...

How to import meetings into office365 (EWS and Powershell?)

powershell,exchange-server,office365,impersonation,meeting
I need assistance importing bookings/meetings into office365. I can export the booking information from our old web-based system into csv, but need a way to import into exchange in office365. The most promising method I have found is using Exchange Web Services to connect to the cloud with powershell an...

Store data in Outlook Addin for each user, then query it for all users

exchange-server,outlook-addin
Is there a way for an Outlook add-in to store some data for each outlook user, then an Exchange admin can query this data for all users at once? If I store the data into Item.UserPorperties or Folder.StorageItems, Exchange Admins will not have access to them. And I prefer not...