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?
GarethParry
Sep 15, 2022Copper 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
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
Sep 15, 2022MVP
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.
- GarethParrySep 16, 2022Copper Contributor
it works if i connect to exchangeonline using a regular user account.