Link to home
Start Free TrialLog in
Avatar of tonyg01
tonyg01Flag 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 ?
Avatar of Shreedhar Ette
Shreedhar Ette
Flag of India image

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
Avatar of 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 ...

Just copy paste the command...post the error recevied.
Avatar of 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
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
Avatar of 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 ?
ASKER CERTIFIED SOLUTION
Avatar of Shreedhar Ette
Shreedhar Ette
Flag of India 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