Avatar of tonyg01
tonyg01
Flag for United States of America asked on

Is this Cmdlet valid for SBS 2011 ? and if yes whats wrong

Trying to set ths blackberry Server up, and give BESAdmin the correct permissions provided in thier article , the info im given is

Get-MailboxDatabase | Add-ADPermission -User "BESAdmin" -AccessRights ExtendedRight -
ExtendedRights Receive-As, ms-Exch-Store-Admin

After removing the qoutes and the bar and pasting it into the Powershell, I get

PS C:\Users\xyzuser> Get-MailboxDatabase Add-ADPermission -User BESAdmin -Access
Rights ExtendedRight -
The term 'Get-MailboxDatabase' is not recognized as the name of a cmdlet, funct
ion, 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:20
+ Get-MailboxDatabase <<<<  Add-ADPermission -User BESAdmin -AccessRights Exten
dedRight -
    + CategoryInfo          : ObjectNotFound: (Get-MailboxDatabase:String) [],
    CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Does anyone have a thought on this ?
ExchangeWindows Server 2008

Avatar of undefined
Last Comment
Shreedhar Ette

8/22/2022 - Mon
Shreedhar Ette

Pipe is missing in the command.

Please use this command:
Get-MailboxDatabase | Add-ADPermission -User "BESAdmin" -AccessRights ExtendedRight -ExtendedRights Receive-As, ms-Exch-Store-Admin

Also refer this:
http://docs.blackberry.com/en/admin/deliverables/12142/Configure_Exchange_10_perms_for_Exchange_account_962758_11.jsp
tonyg01

ASKER
I used the syntax provided by blackberry even named my user name BESAdmin and it was rejected when I pasted it in place  gave me the error not reconized are the qoutes require around  "BESAdmin"

Im new to this power shell thing ...

Shreedhar Ette

Just copy paste the command...post the error recevied.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
tonyg01

ASKER


Ok I copied it and pasted, here are the results  ...


PS C:\Users\Username> Get-MailboxDatabase | Add-ADPermission -User "BESAdmin" -Ac
cessRights ExtendedRight -
The term 'Get-MailboxDatabase' is not recognized as the name of a cmdlet, funct
ion, 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:20
+ Get-MailboxDatabase <<<<  | Add-ADPermission -User "BESAdmin" -AccessRights E
xtendedRight -
    + CategoryInfo          : ObjectNotFound: (Get-MailboxDatabase:String) [],
    CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\JonHall> ExtendedRights Receive-As, ms-Exch-Store-Admin
Shreedhar Ette

First copy the command to a notepas and remove all the entre and then copy & paste from the notepad to command shell.

Also refer this:
https://www.experts-exchange.com/questions/26715344/BES-Setup-unable-to-run-Exchange-2010-cmdlets.html
tonyg01

ASKER
Reading your solution I think the problem is im using the powershell, when I should be using the exchange management shell how do I get to  that ?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Shreedhar Ette

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.