Link to home
Start Free TrialLog in
Avatar of akus1
akus1Flag for United States of America

asked on

Creating a shared mailbox

I am trying to setup a shared mailbox via Windows PowerShell for our Exchange account.

This is how far I have gotten.

1. $LiveCred = Get-Credential
2. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
3. Import-PSSession $Session

Now when I try to enter the command:
New-Mailbox -Name "Shared Mailbox" -Alias Shared -Shared
I receive an error message stating
"The term 'New-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:12
+ New-Mailbox <<<<  -Name "Estimators Calendar" -Alias estimators -Public
    + CategoryInfo          : ObjectNotFound: (New-Mailbox:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException"

Any pointers would be greatly appreciated.
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

You need to user Exchange powershell to make the Command "New-Mailbox" work.

- Rancy
ASKER CERTIFIED SOLUTION
Avatar of akus1
akus1
Flag of United States of America 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 akus1

ASKER

I was set as service administrator and not global administrator