Mailbox commands do not work (Powershell)

Anonymous
2017-02-02T15:55:34+00:00

Hi,

I want to  change some calendar permissions, as I have many times before, but I get the following error message both for Set-MailboxFolderPermission and Get-Mailbox (replaced with x in the message below):

Get-Mailbox : The term 'Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

What can I do?

Microsoft 365 and Office | Subscription, account, billing | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2017-02-02T17:54:50+00:00

    Are you connected to Exchange Online? You can easily verify with Get-PSSession. You can also check if the cmdlets have been downloaded to the temporary module via:

    Get-Module tmp*

    7 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-02-03T08:22:39+00:00

    Hi, thanks

    I am connected. This is what I get:

    7 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2017-02-03T19:05:16+00:00

    Well you dont have the module loaded. Did you run the 3rd cmdlet:

    Import-PSSession $Session

    as detailed here: https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx

    This might also be due to restrictions on the PC you are running PowerShell on. Try running it as administrator.

    26 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2017-02-06T07:39:38+00:00

    Very embarrasssing ...

    Thank you - somehow I had deleted the 3rd cmdlet from my "how-to" instructions ...

    Solved my problem!

    7 people found this answer helpful.
    0 comments No comments