As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [exchange-server]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Cannot see email from other Folders in a Shared Mailbox with PS script

I have a script to check mails that are in my inbox in Outlook. I also can check mails from another mailbox by this script: Function Get-OutlookItems { Param ( [Parameter(Mandatory=$true)] ...
Toon's user avatar
  • 29
0 votes
0 answers
24 views

Limit permissions on shared mailbox via PowerShell

as the title says, I need to limit certain permissions on a office365 shared mailbox. The users should be able to: Read, Send As, use categories/tags. They should not be able to move/delete mails. I ...
user2898518's user avatar
0 votes
1 answer
19 views

Get all mailboxes with Python exchangelib

I'm using Python exchangelib for loading information from Microsoft Exchange. I need to load all mailboxes from Exchange server. Can I get it with exchangelib?
grasdy's user avatar
  • 693
0 votes
1 answer
25 views

How can I prevent existing categories from disappearing when I add a new category to an email item using Exchange Web Services in C#?

I am trying to add a new category to an email item using Exchange WEB Services but when I run the code, existing categories disappear and the category I added becomes the only category. For example an ...
Baristhenix's user avatar
0 votes
0 answers
34 views

how to add retry times or max attemp time in powershell with O365

I have a script to send email via powershell, sometimes due to the bad network, the send maybe failed. is there any way to add retry function in it? thank you $UserName = "xxx@xxx.com" #...
Hill James's user avatar
0 votes
0 answers
17 views

Editing Dynamic Distribution Group Filter to exclude Users

I need help in modifying a dynamic distribution group filter to exclude two users (by using aliases). Current Filter: -RecipientFilter ((((RecipientType -eq 'UserMailbox') -or (((((RecipientType -eq '...
user20072890's user avatar
0 votes
0 answers
12 views

Unable to assign send as permission to a cloud migrated mailbox in an on-premises distribution list [closed]

We have exchange server 2016 deployment with office 365 hybrid set up. We have existing distribution list created in exchange on-premises. After mailbox migration to office 365, we have noticed a ...
Bernietechy's user avatar
-1 votes
1 answer
39 views

Powershell Get Emails from shared Mailbox on Exchange Online

I want to read emails in the inbox of a shared Mailbox on Exchange Online with Powershell on a windows server to get data from the mailbody. So far the methods I found: EWS (no longer maintained) ...
HansBauer's user avatar
0 votes
0 answers
30 views

"Flag External Email Warnings " is invalid. The value can't contain leading or trailing whitespace

I need some help.... I'm currently working on adding this HTML code into exchange for a customer so that they can External Email Warning message for Office 365 Emails however every time I enter in the ...
Ejones90's user avatar
0 votes
0 answers
28 views

How can I include the original email in an Exchange auto-reply for shared-mailboxes?

Does anybody know if this is possible for a Shared-mailbox created in Exchange? Can we make sure that the customer receives the email in the return reply that the customer has sent to us? The customer ...
JM1337dk's user avatar
0 votes
0 answers
17 views

Make on-prem Public Folders visible to 365 users: EXO can't see PFMailbox1

I am trying to make our On-Prem Public folders visible to our 365 users within our hybrid environment. I have been using this Guide: https://learn.microsoft.com/nl-nl/exchange/hybrid-deployment/set-up-...
RyanAndrew's user avatar
0 votes
1 answer
25 views

C# code to access users' maibox through app-only authentication (using Microsoft.Exchange.WebServices)

Since Microsoft prevents basic authentication, i have to rebuild my app that goes and downloads all attachments matching specific criteria from a mailbox in O365. I would like to implement it by using ...
Sarath's user avatar
  • 1
0 votes
1 answer
33 views

WinError 1005 - 4 An existing connection was forcibly closed by the remote host error on downloading outlook emails via exchangelib

I'm trying to run a python script to download emails from an Outlook inbox. However, every single time on the 100th email, the connection is terminated and I get the following error: > Account -----...
Pramit Bhatia's user avatar
0 votes
1 answer
29 views

Group in AD, which will include all users who have a mailing address

I need to create a group in AD, which will include all users who have a mailing address on our Exchange Server. How to select such users and add them to the group? I suppose to run such a script ...
Norbert  Yuhas's user avatar
-1 votes
0 answers
38 views

Remove one meeting in a re-occurring series, using PowerShell

The requirement is to cancel 1 meeting in a re-occurring series and the subject of my meeting is "Bad meeting 2" Meeting happens every Wednesday of the week 14:00 – 15:00 PM as an example. I ...
Sikhumbuzo Ntsada's user avatar
0 votes
1 answer
50 views

Set-MailUser Bulk Operations - Issues Updating LegacyExchangeDN

I'm performing a Cross-Tenant O365 migration using the Microsoft way. Resources: https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-mailbox-migration?view=o365-worldwide https://...
Justice Baker's user avatar
0 votes
0 answers
69 views

Sending email with OAuth authentication to Office 365 using MgGraph

I'm trying to send emails using MgGraph and Modern Authentication and somehow this fails. The sender receives an auto-respond from Exchange saying; Diagnostic information for administrators: ...
bergsj's user avatar
  • 1
0 votes
0 answers
21 views

Exchange email message not being sent through Powershell script

Good day, The message for email users about expiring password is not being sent even though the script doesn't show any error message and runs successfully. Need help investigating where is the issue. ...
Sigitas's user avatar
  • 21
0 votes
1 answer
24 views

Is there a way to automatically save mail attachments with a rule in Exchange Server?

One of our customers is sending mails regularly with attachments in an automated fashion. We'd like to automate saving attachments of these mails to a network share for further processing. Is there a ...
Varga Tamas's user avatar
0 votes
0 answers
31 views

PowerQuery SSIS Connection Manager "Exchange" failed

I would like to make an "Exchange" connection with PowerQuery Source within SSIS (with my office365 email). When I test the connection with my credentials, I get the below error: "We ...
Zayfaya83's user avatar
0 votes
0 answers
24 views

Making User Calendars visible for all users

I'm new to PowerShell. We are an Azure AD cloud tenant and use Exchange online. I have been using Set-MailboxFolderPermission command to make the user's Calendars visible for all other users. Set-...
McG's user avatar
  • 1
0 votes
0 answers
16 views

Hybrid Exchange and failed migration

We have several users on an Exchange 16 box and several on O365 (most migrated - some new employees). After migrating one user to 365 we noticed anyone still on the 16 server sending to him it goes to ...
Jerry's user avatar
  • 5
1 vote
1 answer
80 views

Need to use EWS (Exchange Web Service) to receive Microsoft exchange's/Outlook emails in java spring boot Project

I want to connect to Microsoft exchange server(EWS) with the help of EWS API provided by Microsoft. The Spring boot application should be a continuous listener, so that the application should be able ...
Pankaj Patil's user avatar
0 votes
0 answers
42 views

Get-MailboxFolderPermission not matching for -User Guid

The where in this Get-MailboxFolderPermission used to match for GUID but it stopped working. Now it will only match for -like $user.DisplayName. What did I do to break this code? How can I test what $...
user3064085's user avatar
0 votes
1 answer
75 views

Is it possible to query all emails over 90 days in exchange online using powershell?

I have been tasked to export all emails older than 90 days from user mailboxes that are on extended email retention policies. The goal is to provide them with a list of emails that will be deleted ...
Coty's user avatar
  • 3
0 votes
0 answers
17 views

.Net7 ExchangeService send mails from linux-based containers

I got an .Net7 console-application running in a docker-container. This application should send mails using the ExchangeService: //preparing ExchangeService _exchangeService = new ...
Felix Gerber's user avatar
  • 1,605
0 votes
1 answer
24 views

is there a way to distribute xml exchange server add on on mobile intranet (outlook application) users

I have an xml exchange server add on for reporting emails to the Cyber security team in the company , it is working find except for mobile users on the intranet , i can find anyway to distribute these ...
salaheddine alshawwa's user avatar
0 votes
2 answers
42 views

Getting empty collection while fetching the users from outlook with EWS

Getting empty collection while fetching the users from outlook. Maybe someone is familiar with the issue. This is how I set up my exchange service. This is pretty standard and followed the ...
MOMO's user avatar
  • 1
0 votes
1 answer
48 views

Microsoft Graph API message is missing some properties

I am retrieving some messages from a mail folder "sentItems" using the Microsoft Graph API. In this message I get the "sender" and "from" properties with the data of the ...
J Flex's user avatar
  • 292
0 votes
0 answers
8 views

Our Exchange Server (Office 365/online) is configured, to archive mails by sending a copy to mbx-8423...@archive.example.com. Where do I change this?

All e-mails in our exchange server are getting archived by sending a copy. I have inherited the service and have not received any further information about the configuration. I would be pleased to ...
OneDriverY's user avatar
0 votes
1 answer
92 views

Cannot Access shared office 365 mailbox using exchange service in C#

I am trying to read the shared mailbox of my organization which is managed through Microsoft365. But I get error: Microsoft.Exchange.WebServices.Data.ServiceRequestException: 'The request failed. The ...
Shishank Jain's user avatar
-1 votes
1 answer
54 views

Exchange online Powershell

Is there a single script that can get both Full Access and Send Us Permission of a Shared Mailbox? Currently using two separate script that gets Full access and Send As Permission. Hope someone can ...
WreckTangle's user avatar
1 vote
1 answer
207 views

Is there an API to retrieve Microsoft's newly-added pronouns in M365? [closed]

We're implementing Microsoft 365's new pronouns feature, and we need to be able to sync this user-provided data back to our Active Directory environment. According to the admin documentation, these ...
Micah Yeager's user avatar
0 votes
1 answer
28 views

Is an Outlook Storage Item synced to Exchange

I am having some trouble with an Outlook Addin. The Outlook Addin consists of a COM part and a Web part. After digging into the Logs of that Outlook Addin i was able to figure out that the Plugin ...
Zombievirus's user avatar
2 votes
0 answers
192 views

automating ediscovery exports with powershell

I and trying to have powershell run a script that goes to ediscovery, creates a search for a user, waitings for it to complete, exports it to blob, then downloads it from blob to a local server this ...
Robert Harley's user avatar
0 votes
0 answers
54 views

EWS API calls returning "An internal server error occurred. The operation failed., Fanout timed out"

We are using a forked version of exchangelib to make EWS API calls and we are seeing the Exchange Online/Office 365 server returning the following error: An internal server error occurred. The ...
Dominic Jodoin's user avatar
2 votes
2 answers
131 views

Exchange web service (EWS) Gives Internal server error in the middel of successful FindFolder response

I'm making a Office Add-in in Javascript, and I suddenly gets an Internal Server Error xml document in the middle of the successful soap response document. This used to work but I'm currently getting ...
Jesper's user avatar
  • 23
0 votes
2 answers
67 views

Get email address from advance find in "GAL (Global Address List) outlook" by jobtitle

I tried this code to find contacts in GAL by jobtitle, Sub FindEmailsByJobTitle() Dim olApp As Outlook.Application Dim oGAL As Outlook.AddressList Dim oContacts As Outlook.AddressEntries ...
Iws's user avatar
  • 1
1 vote
1 answer
35 views

Exchange web services - find all unread messages with soap xml request

in my app I need to query Echange web services server and find all unread messages. I am using Golang and I am sending soap xml requests. I tried the following: <?xml version="1.0" ...
Jack's user avatar
  • 857
0 votes
1 answer
119 views

I am trying to migrate Exchange On premise distribution lists to 365 using this powershell script but I am running into this issue

I am trying to push this powershell script to migrate the On premise exchange distribution lists to 365 but running into an error I have posted a screen shot of the error and script below. #Connect to ...
Elroy1995's user avatar
0 votes
0 answers
22 views

EWS API to send email using shell script

I am working on a tekton task to share test results as an attachment to the management team, when I went through tekton dev hub I could find sendMail task but I don't see an option to attach file to ...
Karthik Peddineni's user avatar
0 votes
1 answer
29 views

Outlook ask for Pwd on Redemption - LogonHostedExchangeMailbox

Working with Redemption Dll version 6.3.0.6164 When I try to send a mail from a program, always appears a popup from Outlook asking for the password. And if i enter the pwd, they ask again, and again,...
user21371589's user avatar
0 votes
0 answers
14 views

How to add journal rules using power shell

Is there a way of adding undeliverable journal reports which is in Microsoft Purview > Data life cycle management > Exchange (legacy) > settings > undeliverable reports using powershell? ...
Powershell newbie's user avatar
0 votes
0 answers
35 views

DMARC/DKIM and non-ASCII characters

I'm not very familiar with the details of sending email but I'm getting the runaround between a vendor whose system automatically generates outgoing emails with the content I have configured and the ...
Don Zacharias's user avatar
0 votes
0 answers
54 views

Get an error "no close frame received" when running the algorithm to create a local orderbook

i create a local orderbook using websockets on mexc message = {"method": "SUBSCRIPTION", "params": [f"spot@public.increase.depth.v3.api@BTCUSDT"]}...
budick's user avatar
  • 1
0 votes
1 answer
95 views

"SMTP submit rejected by 452 4.5.3 Too many recipients" on Exchange, while obviously not the case

We are using Exchange Online to send emails, and for past couple of weeks, we have started noticing some errors in our applications that send emails : When logging the recipients, there are just a ...
Vincent F's user avatar
  • 6,263
0 votes
1 answer
86 views

Querying for an email address with a plus (+) sign with Powershell

I'm adapting a Powershell script I have that queries for and creates EXO contacts and users based on a list of names and email addresses from AzureAD to MS Graph. In my old script I could query for an ...
Draw2Button's user avatar
0 votes
0 answers
37 views

Why Folder deleted with subfolder is not available in delta?

Initially, I have folders like this I permanently deleted a Level1 folder which contains subfolders, when I checked in folder delta, response came as deleted for Level1 folder only. Graph response : ...
Susi_003's user avatar
0 votes
1 answer
29 views

How to get the Mailaddress by the Name of an exchange user

I try to run a Script that will give mal participants of a mail-distributiongroup and their mailaddresses. For the participants it works quite well, while for the owners it doesent work, because im ...
MirrahOH's user avatar
0 votes
0 answers
14 views

Exchange 2019 - script to change the display name

We have the policy to create AD users in format of FAMILY NAME Given name, so my name appeared as BARANYI Peter (btw: this is the standard Hungarian format :) ). Now the management asked us to change ...
Peter Baranyi's user avatar

1
2 3 4 5
96