Forum Discussion

GarethParry's avatar
GarethParry
Copper Contributor
Sep 14, 2022
Solved

get-mailbox powershell command no longer works

Hi,

 

i have been running the command

 

 

Get-Mailbox |Select-Object DisplayName, PrimarySmtpAddress |Sort-Object DisplayName | Export-CSV C:\IT\Powershell\Users.csv

 

 

as part of a powershell script for a few months without issue. Now when i run it i get

Active Directory operation failed on PROD.OUTLOOK.COM. Additional information: Active directory response: The server does not support the control. The control is critical.

Have they stopped this command?

thanks

Gareth

 
  • Are you sure that the certificates, applications, and organization (tenant) you're trying to use all line up? Get-ExoMailbox complains about a token mismatch.

    You know that you can run the code interactively, so that means that when authentication works, the code works. The problem here is how you're trying to authenticate. Given that you're using CBA, it's likely something to do with the certificate. Has the certificate expired?

9 Replies

    • GarethParry's avatar
      GarethParry
      Copper Contributor
      Hi,

      yes every time i run it. We use a certificate for access and it is still valid soim not sure if it is access related

      thanks

      Gareth
      • VasilMichev's avatar
        VasilMichev
        MVP
        I'm also using CBA, and not seeing any troubles with it. Just for the sake of completeness, try connecting via regular user account. Or try another machine if possible.

Resources