Solved

Invoke powershell commands to create a mailbox from a application server

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this video we show how to create an email address policy 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 Mail Flow…
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…

707 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

12 Experts available now in Live!

Get 1:1 Help Now