Pre-submission checklist
Describe the bug
Test CIS.M365.1.2.2 is failing with the following error message in the report:
Get-EXOMailbox: Error while querying REST service. HttpStatusCode=401
It is the only failing test in my setup, and all permisions have been setup as per the documentation
Steps to reproduce
Test-MtCisSharedMailboxSignIn
Expected behavior
I expect the test to return either passing or failing
Debug output
15/05/2026, 11:13:02 - Output: Starting Maester
15/05/2026, 11:13:02 - Output: �[33;1mVERBOSE: ConnectionInformation not in cache, requesting.�[0m
15/05/2026, 11:13:02 - Output: �[33;1mVERBOSE: Exchange Online: True�[0m
15/05/2026, 11:13:02 - Output: �[33;1mVERBOSE: Graph: True�[0m
15/05/2026, 11:13:02 - Output: �[33;1mVERBOSE: Getting all shared mailboxes�[0m
15/05/2026, 11:13:02 - Output: �[33;1mVERBOSE: EXOSharedMailbox not in cache, requesting.�[0m
15/05/2026, 11:13:02 - Output: �[33;1mVERBOSE: Running Get-ExoMailbox�[0m
15/05/2026, 11:14:05 - Output: �[33;1mVERBOSE: Not running in a Pester context.�[0m
15/05/2026, 11:14:06 - Output: �[33;1mVERBOSE: Not running in a Pester context.�[0m
15/05/2026, 11:14:06 - Output: �[33;1mVERBOSE: Adding test result detail for �[0m
15/05/2026, 11:14:06 - Error: �[31;1mInvalidResult: �[31;1mis skipped, because An error occurred while running the test. ?? Get-EXOMailbox: Error while querying REST�[0m
15/05/2026, 11:14:06 - Output: �[33;1mVERBOSE: Result:
15/05/2026, 11:14:06 - Output: Error. An error occurred while running the test. ??
15/05/2026, 11:14:06 - Error: �[31;1m�[31;1mservice. HttpStatusCode=401�[0m
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Error: �[31;1m�[31;1mErrorMessage= �[0m
15/05/2026, 11:14:06 - Error: �[31;1m�[31;1m �[0m
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Error: �[31;1m�[31;1m �[0m
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Output: Get-EXOMailbox: Error while querying REST service. HttpStatusCode=401 ErrorMessage=
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Output:
15/05/2026, 11:14:06 - Output: �[0m
Module version
ModuleType Version PreRelease Name
---------- ------- ---------- ----
Script 2.1.0 Maester
Environment data
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Microsoft Windows 10.0.20348
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Screenshots
No response
Additional context
No response
Pre-submission checklist
Describe the bug
Test CIS.M365.1.2.2 is failing with the following error message in the report:
Get-EXOMailbox: Error while querying REST service. HttpStatusCode=401
It is the only failing test in my setup, and all permisions have been setup as per the documentation
Steps to reproduce
Test-MtCisSharedMailboxSignIn
Expected behavior
I expect the test to return either passing or failing
Debug output
Module version
Environment data
Screenshots
No response
Additional context
No response