Link to home
Start Free TrialLog in
Avatar of bizzie247
bizzie247Flag for United States of America

asked on

Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program

In Exchange 2013, I am trying to set room resources so that all staff can view/review. Using powershell I enter:

Get-Mailbox | where{$_.RecipientTypeDetails -eq "RoomMailbox"}  | Add-MailboxPermission -User "Outlook Resource Administrators" -Accessright Fullaccess

I get the following error:

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.
At line:1 char:1
+ Get-Mailbox | where{$_.RecipientTypeDetails -eq "RoomMailbox"}  | Add-MailboxPer ...
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-Mailbox:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
                                                           Get-Mailbox | where{$_.RecipientTypeDetails -eq "RoomMailbox"}  | Add-MailboxPermission -User "Outlook Resource Administra


Is there some type of library add-in that I need to get for power shell?
ASKER CERTIFIED SOLUTION
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bizzie247

ASKER

The Snapin worked and it allowed me to move forward after the snapin. I am embarrassed to tell you how much time I spent on this before your help! Thank you!