akus1
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was set as service administrator and not global administrator
- Rancy