Solved

Invoke powershell commands to create a mailbox from a application server

Posted on 2014-04-14
4
466 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
  • 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

820 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