Solved

Invoke powershell commands to create a mailbox from a application server

Posted on 2014-04-14
4
471 Views
Last Modified: 2014-04-15
Hi Experts,

As part of the Service Catalog Portal implementation in SCSM, we are setting up automated tasks, and one of them is to “Create Mailbox”.

currently I am working in DEV to test this automation, and I need help with the “Create Mailbox” activity. More specifically, I need to be able to invoke powershell commands to create a Mailbox from the DEV Orchestrator server

Any suggestions or ideas?
0
Comment
Question by:Jerry Seinfield
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:Jerry Seinfield
ID: 40001984
Any updates?
0
 
LVL 16

Expert Comment

by:Enphyniti
ID: 40002091
I don't believe there is any "create-mailbox" cmdlet.

What you are looking for is a combination of

New-ADUser (with all the flags and tags to create it how you like)
and then
Enable-Mailbox (with all the flags and tags to specify creation)
0
 
LVL 14

Expert Comment

by:Justin Yeung
ID: 40002098
in exchange I believe it should be New-Mailbox
0
 
LVL 16

Accepted Solution

by:
Enphyniti earned 500 total points
ID: 40002100
Nevermind... you're looking for "New-Mailbox"

I knew there was something like that.  That will allow you to create the associated AD user as well.  Something like this:


New-Mailbox -Name 'New User' -Alias 'nuser' -OrganizationalUnit 'domain.com/Users' -UserPrincipalName 'nuser@domain.com' -SamAccountName 'nuser' -FirstName 'New' -Initials '' -LastName 'User' -Password 'password' -ResetPasswordOnNextLogon $false -Database 'DBNAME'

You only need to create the user first and enable the mailbox second if you need more granular control of the account creation.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
In-place Upgrading Dirsync to Azure AD Connect
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question