?
Solved

Invoke powershell commands to create a mailbox from a application server

Posted on 2014-04-14
4
Medium Priority
?
474 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 2000 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

WatchGuard's M Series Appliances - Miecom Approved

WatchGuard's newest M series appliances were put to the test by Miercom.  We had great results and outperformed all of our competitors in both stateless and stateful traffic throghput scenarios! Ready to see how your UTM appliance stacked up? Download the Miercom Report!

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

801 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