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 powers...
  • TonyRedmond's avatar
    TonyRedmond
    Oct 07, 2022
    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?

Resources