72 questions
1
vote
1
answer
45
views
Expired or Invalid pagination request. Default Expiry time is 00:30:00″ Error when returning 1000 or more entries with Get-UnifiedGroupLinks
There are more than 1,000 members in the test groups. I am receiving the following error message.
Expired or Invalid pagination request. Default Expiry time is 00:30:00
$GroupIdentity = "test ...
0
votes
1
answer
92
views
Connect-ExchangeOnline -ManagedIdentity -Organization will raise this error " The role assigned to application ** isn't supported in this scenario"
I have created an Azure Function of type PowerShell core. the code will get user emails from sharepoint list, and remove the user from all the groups (Security group, Mail-Enabled security group, ...
0
votes
1
answer
196
views
"Get-MgUser" raised "Insufficient privileges to complete the operation" & "Connect-ExchangeOnline -ManagedIdentity -Organization" raised "UnAuthorize"
I have an azure function running powershell, and here is the run.sp1, which mainly remove a user from all the groups; office 365 groups, distribution lists & security group (mail enabled and none-...
0
votes
0
answers
35
views
Exchange Admin Center - Enable audit for all mailboxes that has it disabled
I have a enterprise application created for Exchange admin center. Have all the necessary client credentials (ID, Secrete & Tenent id). I couldn't find any graph api to get audit mailbox status ...
0
votes
1
answer
210
views
ERROR: The specified module 'ExchangeOnlineManagement' was not loaded because no valid module file was found in any module directory
I have created an Azure function under consumption plan, that uses PowerShell, then inside the run.ps1, i added this code, to remove a user from all the groups assigned to the user:-
and the following ...
0
votes
1
answer
179
views
Power Shell script to remove a user from all the groups the user is a member of and owner of
I want to write a power shell script to remove the user from all the groups the user is added to as a Member or as Owner , including those :-
1- Distribution list
2- Security Group
3- Mail-Enabled ...
0
votes
1
answer
46
views
PowerShell Script for Importing Contacts to Outlook Fails to Set Email Address Correctly
I'm working with a PowerShell script that imports Active Directory users to Outlook contacts. The script successfully imports various attributes, but the email addresses are not set correctly. The ...
-1
votes
1
answer
228
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
504
views
Why am I getting an 'Unauthorized' error when using Connect-ExchangeOnline with Managed Identity in Azure Automation?
Problem Description
I am trying to use Connect-ExchangeOnline with a managed identity in an Azure Automation account to run unattended scripts. While the command works perfectly on my local machine, ...
0
votes
1
answer
107
views
How to resolve an UnauthorizedAccessException when connecting to Exchange Online via PowerShell
I am struggling to get the Connect-ExchangeOnline command working in an Automation account.
It worked perfectly when run on my machine, but we want it to run unattended, so I was looking at running it ...
2
votes
0
answers
105
views
Why am I getting "SASL authentication failed" with Jakarta Mail?
I am trying to send an email using Jakarta Mail with Exchange Online, but I am encountering the following error:
Error Message:
SASL authentication failed
Steps I have taken:
I have configured the ...
2
votes
1
answer
144
views
exchange online Get-DistributionGroupMember command not getting Initials
I am doing this PowerShell command Get-DistributionGroupMember but it is not returning the user's middle name. Is there something I am missing? Any other way to do this?
public List<EmailGroup> ...
0
votes
2
answers
82
views
Get DL Groups user is member of in Exchange online
I'm trying to get the list of DL groups user is member of in O365. I'm using below PS Script but I'm getting the error message.
$user = "[email protected]"
$dlGroups =Get-DistributionGroup | ...
0
votes
1
answer
98
views
Invoke-RestMethod : The remote server returned an error: (403) Forbidden. enable Audit for disabled mailbox from exchange online - powershell
I need to check for disabled audit mailbox in exchange online and enable it.
I have registered app in azure with all the required permissions granted.
I need to use powershell to perform this.
This is ...
0
votes
0
answers
41
views
Why Do Cmdlet and Microsoft Graph API Responses for Working Hours and WorkDays Depend on the Source of Last Modification?
I noticed an unusual behavior when retrieving a user's working hours using Microsoft Graph API or PowerShell cmdlets:
Behavior Observed:
Dependency on Last Modification Source:
If the working hours ...