Solved

Invoke powershell commands to create a mailbox from a application server

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
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…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now