4,772 questions
0
votes
1
answer
42
views
How to Setup/Debug After Hours OOO Reply with Power Automate
Setting up a automatic OOO reply for an inbox in Exchange online via Power Automate,
I am pretty novice with Power Automate, so please let me know if this is a silly question
My logic is
"When a ...
0
votes
1
answer
111
views
Why is Powershell call to Enable-MailUser taking an hour or more with a new Active Directory user
I create an Active Directory user, wait 3 minutes, then call a Powershell script that has a call to Enable-MailUser. This script works, sometimes taking minutes but half the time or more taking an ...
0
votes
0
answers
57
views
EWS on OVH Hosted Exchange
I am trying to use EWS API to set OOF on a webmail account hosted on OVH (Hosted) Exchange.
I am getting 401 status code every time whereas my email and password are good.
When trying here : https://...
0
votes
0
answers
58
views
How to 'Send-As' a Distribution Group (via SSIS ScriptTask) connecting to Exchange Online using Modern Authentication?
We have a SQL Server Integration Services (SSIS) task that retrieves emails from a table in our Customer Relationship Management (CRM) system. The emails contain From:, To:, Cc, and Bcc: addresses, in ...
0
votes
0
answers
65
views
AD Exchange Mailbox AccessRights - Inheritance
I'm working with Exchange On-Prem / Online and looking at mailbox-level permissions using PowerShell:
Get-MailboxPermission [email protected]
One of the output columns is IsInherited, which is either $...
0
votes
1
answer
329
views
Prometheus Alert Manager Integration with OAuth2 Credentials Not Working
Snippet of my alertmanager.yml file:
global:
smtp_smarthost: "smtp.office365.com:587"
smtp_from: "[email protected]"
http_config:
oauth2:
client_id: "...
0
votes
0
answers
55
views
Subscription is invalid while unsusbcribing in microsoft exchange
I am using Microsoft Exchange Server 2013 and I am trying to subscribe to specific folders for notifications. The subscription payload I am using works fine, and I receive a valid SubscriptionId in ...
1
vote
0
answers
71
views
How to delete attachments in Exchange On-Prem add-in using Office.js (makeEWSRequestAsync or alternative)?
I’m developing an Outlook add-in for an Exchange On-Premises (On-Prem) environment. The goal is to allow users to delete email attachments directly from the add-in.
However, I’ve run into the ...
0
votes
0
answers
161
views
How do I filter Exchange Dynamic Distribution Groups for multiple potential criteria?
Here's the problem. One of the fields we are using to build our dynamic distribution list has the potential to have multiple values. It's an extension attribute that can have either a single value, ...
0
votes
1
answer
96
views
Deleting attachment of mail via Office js <= 1.5 or from EWS call
I am developing an Outlook add-in using Office.js for an Exchange On-Premises server. Due to the limitations of Exchange On-Prem, the supported Office.js version is 1.5 or lower. Unfortunately, in ...
0
votes
1
answer
57
views
Syncing EWS UpdateItem Changes to Compose Pane in Exchange On-Prem Outlook Add-in (Office JS ≤ 1.5)
I am working on an Outlook add-in for Exchange On-Premise accounts using Office JS, but since Exchange On-Prem only supports Office JS ≤ 1.5, many Office JS APIs are unavailable for certain tasks. As ...
-1
votes
1
answer
433
views
Running HCW and get the error HCW8001 Unable to determine the Tenant Routing Domain
HCW - Hybrid Configuration Wizard is a tool to help automate the creation of a hybrid environment between on-premises Exchange Server and Exchange Online / Office 365 / Microsoft 365.
Hybrid ...
0
votes
1
answer
134
views
"The service cannot accept control messages at this time" when trying to re-join Exchange Server to domain
An Exchange Server that was not running for an extended period of time, was brought back up again. A domain user could not interactively logon because the workstation lost the trust relationship with ...
0
votes
2
answers
491
views
Mailbox folder permissions using Graph API
I am trying to query mailbox folder permissions in Exchange Online however powershell cmdlets is not an option because of their slowness and EWS is going to be deprecated in October 2026.
The ...
0
votes
1
answer
116
views
Exchange PowerShell GUI - how to get mailbox size?
Trying to write some PowerShell script - need to get value of mailbox size and write it to a variable (to show as a text field on a form).
It looks like this:
$MailboxSize=Get-MailboxStatistics info | ...
0
votes
1
answer
282
views
Get-RemoteDomain in powershell exchange online error : The term 'Get-RemoteDomain' is not recognized as the name of a cmdlet
All required modules were installed, as for example I can run Get-mailbox command.
I'm using certificate based authentication , the service principal is in Global administrators group and Azure ...
0
votes
1
answer
280
views
AddressList.AddressEntries collects only the first 500 entries of address list
I am using O365 classic Outlook on Windows 10.
I want to check that every user in "All users" is known in an internal "HR" directory.
In the sample VBA code below, AddressList....
1
vote
1
answer
87
views
Outlook/Exchange email messages export with exclusion of specific emails addresses/domains
I need to export all messages from exchange mailbox but the tricky thing is to exclude from it some email domains (around 30).
So the output of the operation is export of almost all messages excluding ...
0
votes
0
answers
21
views
Getting mail content from Exchange
I am trying to get the content of the email content from my exchange inbox:
_service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
_service.Credentials = new WebCredentials(_user, ...
0
votes
1
answer
154
views
User impersonation on Exchange Online using Powershell?
I'm trying to write a powershell script to enumerate through the emails in a user's exchange online mailbox and display basic identifying information (subject, receive date, etc) this is to allow me ...
0
votes
0
answers
49
views
Office 365 (exchange) modifies email headers
In my application's backend (Django) I send emails to contacts.
I sometimes expect contacts to reply those emails (helpdesk application).
Using classic SMTP/IMAP-POP email server (hosted on OVH) ...
0
votes
2
answers
190
views
Programmatically Assign Exchange Roles to a Group in Azure AD using Microsoft Graph API
I'm working on a project where I need to create a security group in Azure AD and assign specific Exchange roles to this group using C#. I want to avoid using PowerShell commands for this task. Here is ...
0
votes
1
answer
601
views
EWS Managed API Authentication with Exchange on premise (NTLM)
Could you please guide me on how to use NTLM authentication for the Microsoft EWS API services with Exchange Server On-Premises? According to the documentation https://learn.microsoft.com/en-us/...
1
vote
1
answer
662
views
How to set up an (Azure) OAuth2 application for personal Outlook.com accounts (Exchange) for usage with exchangelib?
As Outlook.com seems to require OAuth2 authentication, setting up an OAuth2 application seems to be required for using exchangelib.
As a personal user, I did not really find good documentation on that....
-2
votes
2
answers
218
views
Symfony Mailer with Exchange [closed]
I'm struggling a bit with the Symfony Mailer in combination with Exchange Server 2016.
As I was trying things out, I have found that Swift Mailer has native NTML support, but it gave me this error ...
1
vote
0
answers
43
views
Bulk update ADObject owners/permissions
In 2021 we migrated away from our on-premises Exchange server to Google Workspace. We have then migrated servers we needed from on-premises to Azure, but as the exchange server was no longer needed ...
0
votes
1
answer
280
views
How to correlate emails between Microsoft Graph API and Office 365 Management Activity API?
I'm developing an email analytics application that needs to track who sends emails from shared mailboxes. To do this, I'm using two Microsoft APIs:
Microsoft Graph API: to get the email data
Office ...
0
votes
1
answer
138
views
How to send an email with Exchange On-Premises in outlook addin
I am building a outlook addin where I need to send an email for phishing to specific exchange account using Exchange On-Premises via Exchange Web Services (EWS). I am trying to make a POST request to ...
1
vote
0
answers
126
views
PowerShell Exchange Commands Not Working in Docker on Linux for Exchange On-Premises 2007
I am currently developing a REST API that needs to interact with an on-premises Microsoft Exchange server (Exchange 2007, not Office 365) through PowerShell commands. In my development environment (...
0
votes
0
answers
93
views
Powershell Exchange-Online - Set-Mailbox HiddenFromAddressListsEnabled with cert based auth
The cmdlet Set-Mailbox does not accept the parameter HiddenFromAddressListsEnabled if the cmdlet "Connect-ExchangeOnline" is cert based.
With my admin credentials the parameter is shown.
...
0
votes
0
answers
81
views
How to read mails from exchange server by using Pop3 protocol in VS2022
I was using below c# code in Visual studio 2022 to read mails from exchange server folder testmail and getting error as ERR Logon failure: unknown user name or bad password at line below. telnet is ...
0
votes
1
answer
590
views
Create or update an Event with Microsoft Graph-API without sending out an invitation
As part of a migration of calendar data to microsoft exchange, events are created or updated via the graph api. The problem is that all attendees are notified each time.
I tried to search for an ...
0
votes
1
answer
228
views
Why is there a discrepancy between storage usage in Exchange Admin Center and 'Get-MailboxFolderStatistics'?
I'm currently working on Exchange license storage usage analysis and encountered a discrepancy between the storage usage size shown in the Exchange Admin Center (EAC) for each user and the size ...
0
votes
1
answer
176
views
Is there a way to develop an exchange transport agent like for 365/Azure?
I am currently looking for a way to hook all incoming emails in a 365 tenant.
For the moment, we only found the solution to have 1 hook per mailbox and being notified of incoming email, but this ...
0
votes
0
answers
520
views
Get-MgUserCalendarView : Access is denied -
Im trying to create a Daily update for all staff on their calendar entries which then will get sent to all management members.
Connect-MgGraph -Scopes "Calendars.Read", "Calendars....
-1
votes
2
answers
71
views
Exchange server doesn't accept store command without explictely selecting the inbox
I have a ImapMailReceiver implementation to receive the emails from remote IMAP server, which works fine with any IMAP servers we tested so far. Nevertheless, one of the Exchange (2016) servers we ...
0
votes
1
answer
45
views
How to get values from enumeration created from ExchangeManagement Shell
How to get the AccessRights List for the identity in C Sharp.
where I tried to cast the
obj.Properties["AccessRights"].Value to PSObject,PSObject[],object etc..\
But everything resulted in ...
1
vote
0
answers
1k
views
Unable to Use Get-MessageTrace Command in Exchange Online
I’m having trouble with PowerShell and Microsoft Exchange. I’m trying to interact with Exchange Online via PowerShell to retrieve all emails received within a specified date range and display them on ...
0
votes
1
answer
447
views
What is difference between commands Disable-MailUser and Disable-Mailbox in MS Exchange [closed]
I can't find any results explaining the difference between these two commands.
My main question is: which command is better to use in modern exchange systems, such as MS Exchange 2019 on-premise?
...
2
votes
1
answer
3k
views
Get-MgGroupMember by display name instead of userID
I am currently in the process of replacing an old script that used Exchange Online Powershell.
The old script was very simple and only performed 2 tasks.
Downloaded user photos that had custom ...
0
votes
1
answer
206
views
How to use PS/ GraphAPI to get the calendar or events on the public mail box in O365?
We are using the VBScript to get the Exchange 2016 public folder events/calendar, but we have upgrading the mail server to Office 365, the existing VBScript cannot execute to get the calendar/events.
...
0
votes
1
answer
25
views
Can I use NOT or 'only if' in Exchange message rules?
With the phishing test tool we use it's very labour intensive to ensure the test mails don't include a specific sender address. That's usually fine, but some of our inboxes are used to report security ...
0
votes
1
answer
220
views
MAPI cannot read all entries of the global address list (GAL) anymore in Exchange Online since January 2024
I have a MAPI application that uses a MAPI online profile to read all mail users of the global address list (GAL). Since January 2024 only 500 entries can be read from the GAL in Exchange Online.
The ...
-1
votes
1
answer
38
views
What Exchange Online APIs enable simple searches across all exchange messages for a tenant?
I would like to be able to get a count, or collection of message datetimes, for all messages sent to or received from a collection of external addresses.
It seems like the ComplianceSearch APIs can do ...
-1
votes
1
answer
49
views
Connect-ExchangeOnline with German 0365 cloud always times out
I want to configure some rooms in Outlook in Microsoft 365 and therefore need to use the Powershell.
I'm using Powershell 7.4.2 on macOS.
At first im running
Import-Module ExchangeOnlineManagement
...
0
votes
1
answer
203
views
Debug logs for exchangelib
I'm using exchangelib to connect to an on-premise Exchange server as part of some pytest code and getting the error "Failed to get auth type from service" so I wanted to turn on debugging so ...
0
votes
0
answers
130
views
Displaying MessageID via Powershell
Please, tell me if there is an opportunity to run searching and displaying an MessageID of every single email, which I will get via my code.
I was trying to figure out it, but I have only blank column ...
0
votes
1
answer
87
views
EWS JAVA API 2.0 forward email with incorrect timezone
I am writing a function in Java to forward Outlook emails. When using ews-java-api 2.0, I found that the time zone of the original email's sent time attached to the forwarded email is UTC, not the UTC+...
0
votes
1
answer
112
views
How to catch all emails in exchange when sent to dynamic email with wildcard
Good day everyone
I am trying to do something together with power automate and exchange server but somehow the process is failing. I have created the following email
inbox.patient@myhospital....
0
votes
0
answers
469
views
The term 'Get-MailboxJunkEmailConfiguration' is not recognized as the name of a > cmdlet
I'm using Exchange 2019 (on-premise), I want to run this cmdlet to view the junklist of a user:
Get-MailboxJunkEmailConfiguration -Identity "user mailbox"
but here is the output:
Get-...