• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 999
  • Last Modified:

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.
0
akus1
Asked:
akus1
  • 2
1 Solution
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
You need to user Exchange powershell to make the Command "New-Mailbox" work.

- Rancy
0
 
akus1Author Commented:
User needs to have Global Administrator rights, and not Service Administrator rights.

Problem solved.
0
 
akus1Author Commented:
I was set as service administrator and not global administrator
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now