Forum Discussion
GarethParry
Sep 14, 2022Copper Contributor
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...
- Oct 07, 2022Are 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?
VasilMichev
Sep 14, 2022MVP
Do you mean you get this error every time you run the cmdlet?