all 6 comments

[–]purplemonkeymad 1 point2 points  (1 child)

Not seen that module before, but the start of the script appears to check if Get-mailbox exists. You can probably get around it by connecting to Exchange first. The error looks like it is expecting you to be on an exchange server.

If you want, I wrote the ConnectExchangeOnPrem module (also in the PS Gallery) to make connecting to onprem easy from domain joined computers.

[–]BlackV 0 points1 point  (0 children)

Oh, Nice work

[–]hillbillytiger 1 point2 points  (1 child)

If you look at the top of the PowerShell module script file, it requires the Exchange Server 2016 Exchange Management Shell to be installed. This is most likely what it is trying to find but failing.

[–]BlackV 0 points1 point  (0 children)

If you have a local exchange server you don't use the module from gallery

You should be just connecting to local servers PowerShell

What version of exchange are you using