automating multi-tenancy in exchange server 2010 sp2 (part ...€¦ · if you would like to read...

14
If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 1) Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 2) Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 3) Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 4) Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 6) Introduction Introduction Welcome to System Center Orchestrator! If this is your first time then I hope you feel welcomed and excited as well! The main screen of Orchestrator (Figure 01) is divided into 3 main areas: on your left side you have your Runbooks where we are going to create a new one (right click, click New and then Runbook ), Computer Groups (a group of computers that can be referenced from our Runbooks), Runbook Servers (the actual Orchestrator Servers that run our automation runbooks) and Global Settings (where we can define variables and schedules to be referenced from Runbooks). RECOMMENDED How to migrate from Microsoft Exchange 2010 to Exchange 2016 Our next step is to move activities to our Runbook and I would like to introduce you to the first activity which is the Initialize Data located under Runbook Control. That activity is responsible for requesting information from the end-user that is using our Runbook. Let’s drag and drop into our brand new Runbook. A new dialog box will appear with the information Are you sure you want to check out this runbook? Click Yes . You can look around and you will see tons of interesting activities, and we can also add additional 0 511 Views 511 Views 0 Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 5) Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 5) SHARE ON FACEBOOK SHARE ON FACEBOOK TWEET IT TWEET IT Anderson Patricio Anderson Patricio P O S T E D O N O C T O B E R 3 0 , 2 0 1 3 converted by Web2PDFConvert.com

Upload: others

Post on 20-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

If you would like to read the other parts in this article series please go to:Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 1)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 2)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 3)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 4)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 6)

IntroductionIntroductionWelcome to System Center Orchestrator! If this is your first time then I hope you feel welcomed andexcited as well!

The main screen of Orchestrator (Figure 01) is divided into 3 main areas: on your left side you have yourRunbooks where we are going to create a new one (right click, click New and then Runbook),Computer Groups (a group of computers that can be referenced from our Runbooks), Runbook Servers(the actual Orchestrator Servers that run our automation runbooks) and Global Settings (where we candefine variables and schedules to be referenced from Runbooks).

RECOMMENDED

How to migrate from Microsoft Exchange 2010 to Exchange 2016

Our next step is to move activities to our Runbook and I would like to introduce you to the first activitywhich is the Initialize Data located under Runbook Control. That activity is responsible for requestinginformation from the end-user that is using our Runbook. Let’s drag and drop into our brand newRunbook. A new dialog box will appear with the information Are you sure you want to check out thisrunbook? Click Yes.

You can look around and you will see tons of interesting activities, and we can also add additional

00 511 Views511 Views00

Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 5)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 5)

SHARE ON FACEBOOKSHARE ON FACEBOOK TWEET ITTWEET IT

Anderson PatricioAnderson Patricio P O S T E D O N O C T O B E R 3 0 ,

2 0 1 3

converted by Web2PDFConvert.com

Page 2: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

activities through IP (Integration Packs) that can be downloaded from Microsoft.

Figure 01

Let’s explore our first item which is Initialize Data by doing a right-click and then Properties. Eachactivity will have its own set of tabs located on the left side. On the Details tab we can click on the Addbutton to add parameters that will be requested from the end-user and based on our manual processwe know that we need two pieces of information - Domain and the short-name for a future tenant.Based on that we are going to click on the Add button twice and for each new data dialog box we aregoing to add the name of our desired fields, as shown in figure 02. After adding our two required fields,click Finish.

Figure 02

That’s great! How can we test it? Hang in there and let’s add one more activity. Expand Email on theright side and drag and drop Send Email into our Runbook. We have two activities that are notconnected. To connect them click the Initialize Data icon and then a white arrow will show up on the

converted by Web2PDFConvert.com

Page 3: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

right side. Hover the mouse on it and then you can create a link with another object which in our case isthe Send Email activity. The result will be similar to the one shown in Figure 03.

Figure 03

Awesome, in theory when we execute this Runbook we will have a dialog box requesting two pieces ofinformation, and after that the Send Email activity will take over, however we need to configure thesecond activity to do something.

In order to do that, get the properties of the Send Email and you will realize that we have more tabsavailable. Click on Details first and then enter the information that we want to send in the Subject,Recipients and message. However Orchestrator allows us to be dynamic and we don’t need to createstatic content. We can use information that is on this Runbook to provide more details and be moredynamic. A good example is the Message field: right-click and click Subscribe, and then PublishedData as shown in Figure 04.

Figure 04

In the new window (Figure 05) we can choose an activity. Choose Initialize Data and here we have the

converted by Web2PDFConvert.com

Page 4: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

two fields that we created previously. Select Domain and in a different portion of the message let’s addthe short-name field as well.

The domain <Domain field> was created and the short-name <Short-name field> was defined for theAddress Lists.

Note:The <Domain Field> is represented by {Domain: from “Initialize Data”} by Orchestrator whereDomain: is the field name and Initialize Data is the activity.

Figure 05

One last detail before moving forward, we need to go to the Connect tab, and then type in the from:address and the Exchange Server that will be used. If the Receive Connector that you are going to userequires authentication then you need to check the Advanced tab and fill the information.

Okay, time for testing!! Let’s click Runbook Tester on the main screen of Orchestrator and a newwindow will be opened (Figure 06). On the new screen we have several sections, on the bottom left sidewe can select any Activity and the information will be displayed. On the bottom right side we havecontent (if applicable) for Computer Groups, Counters, Variables and Schedules. Click Run.

converted by Web2PDFConvert.com

Page 5: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Figure 06

As expected the first page (Figure 07) will request some information from the end-user, so let’s provideinformation for a new tenant (WindowsNetworking.com and WN as short-name).

Figure 07

In the Log section each task will be listed with its status (Figure 08) and we can troubleshoot what isgoing on.

converted by Web2PDFConvert.com

Page 6: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Figure 08

Since the results were positive open our OWA and we should find a message waiting for us (Figure 09).Notice that the information provided was added to the message. Pretty cool, uh? Well, now thatbecomes interesting, we may have Orchestrator running reports for us and sending them by e-mail.That’s a piece of cake, as a matter of fact let’s do one of these before finishing up this article, shall we?

Figure 09

Creating a general report of all mailboxesCreating a general report of all mailboxesOkay, that is a little detour from our main goal but it is important to show you how to play around withOrchestrator before going to our multi-tenant automation Runbook.

Let’s see how easy it is to create a report of our existent mailboxes. Let’s create a new Runbook, moveand link two activities: Run .Net Script and Send Email, as shown in Figure 10.

converted by Web2PDFConvert.com

Page 7: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Figure 10

In the Run .Net Script activity configure the type to PowerShell and type in these 3 lines in the Scriptfield. One last thing, please create a folder called Reports on the C: root drive.

$EXSession = New-PSSession –ConfigurationName Microsoft.Exchange –ConnectionURIhttp://poaex01.apatricio.local/PowerShell

Import-Session $EXSession

Get-Mailbox | Select Name,DisplayName,PrimarySMTPAddress,OrganizationalUnit | Export-CSVC:\Reports\Users.csv –NoTypeInformation

- where the poaex01.apatricio.local is my Exchange Server.

The last step is to configure the Send Email activity to send an attachment, just type in the name of thefile C:\Reports\Users.csv as you defined in the script that will run before the Send Email activity.

Now we are almost ready, we just need to execute the Runbook. The result will be a new message inthe mailbox of the defined user of the activity with the CSV attached (Figure 11).

Figure 11

End-user experience using Orchestrator…End-user experience using Orchestrator…Well our main goal in this article series is to allow our secretary to create the new tenants by creating anautomated task where she doesn’t have any special permissions in our environment. However with a fewpieces of information she will be able to get a new customer up and running without asking for help.

So far, we have covered how to create a Runbook but the presentation for the end-user is different,

converted by Web2PDFConvert.com

Page 8: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

basically our secretary can go to the website (default address is http://<Server-Name>:82>) and allRunbooks that she has the permissions on will be displayed (Figure 12). In order to start any given Runbook the end-user just has to select it and then click Start Runbook from the Toolbox Actions area.

Figure 12

Since we created an Initialize data activity the end-user will be requested the same information that wecreated and tested during the Runbook Testing phase, as shown in Figure 13.

Figure 13

ConclusionConclusionIn this article we went over the basic concepts of Orchestrator. Based on these key concepts we aregoing to develop the automation process for a new tenant.

Bear in mind that Orchestrator has tons of resources on top of these few key points that we saw in thisarticle. Your only limitation is either time or imagination to develop your own runbooks.

If you would like to read the other parts in this article series please go to:

converted by Web2PDFConvert.com

Page 9: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 1)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 2)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 3)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 4)Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part 6)

Query Tune for Faster SQL Server PerformanceDatabase Performance Analyzer gives you all your performance data in an intuitive dashboard - monitor essentialmetrics, analyze SQL statements, and receive expert tuning advice.Eliminate Exchange OutagesMonitor your DAGs, Managed Availability, mail flow, and CAS servers. Covers Office 365, ADFS, Azure AD Connectand Exchange 2016. Includes 250+ reports. Free guided install and trial.Transform yourself into an Office 365 traffic reporting and analysis guruPromodag Reports automates, schedules and publishes over 80 configurable and attractive reports that go farbeyond native Office 365 reports. Free eval version available.

Anderson PatricioAnderson PatricioAnderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the

Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Andersoncontributes to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular

contributor here at Techgenix.com, MSExchange.org, ITPROCentral.com and Anderson Patricio.org (Portuguese).

TECHGENIXTECHGENIX » » MS EXCHANGE SERVERMS EXCHANGE SERVER » » EXCHANGE 2010EXCHANGE 2010 » » AUTOMATING MULTI-TENANCY IN EXCHANGE SERVER 2010 SP2 (PART 5)AUTOMATING MULTI-TENANCY IN EXCHANGE SERVER 2010 SP2 (PART 5)

TRENDING NOWTRENDING NOW

A U T H O R

Featured LinksFeatured Links

converted by Web2PDFConvert.com

Page 10: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Your email address will not be published. Required fields are marked *

LEAVE A REPLYLEAVE A REPLY

Apps infected with Ztorg Trojan removed from Google Play StoreApps infected with Ztorg Trojan removed from Google Play Store

Top 10 open-source application monitoring toolsTop 10 open-source application monitoring tools

Derek KortepeterDerek Kortepeter J U L Y 6 ,

2 0 1 7

Twain TaylorTwain Taylor J U N E 1 3 ,

2 0 1 7

READ NEXTREAD NEXTNetwork Integration of Microsoft Office Server Products v1.2Network Integration of Microsoft Office Server Products v1.2

converted by Web2PDFConvert.com

Page 11: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Name*Name*

Email*Email*

WebsiteWebsite

P O S T C O M M E N TP O S T C O M M E N T

N O T I F Y M E O F F O L L O W - U P C O M M E N T S B Y E M A I L .N O T I F Y M E O F F O L L O W - U P C O M M E N T S B Y E M A I L .

N O T I F Y M E O F N E W P O S T S B Y E M A I L .N O T I F Y M E O F N E W P O S T S B Y E M A I L .

FEATURED PRODUCTFEATURED PRODUCT

LATEST PODCASTLATEST PODCAST

converted by Web2PDFConvert.com

Page 12: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

Get a free copy of the new SolarWinds PermissionsGet a free copy of the new SolarWinds PermissionsAnalyzer!Analyzer!

SUBSCRIBE TO PODCASTSUBSCRIBE TO PODCAST

FEATURED FREEWAREFEATURED FREEWARE

converted by Web2PDFConvert.com

Page 13: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

TechGenix reaches millions of IT Professionals every month, and has set the standard for providingfree technical content through its growing family of websites, empowering them with the answers and

RECOMMENDEDRECOMMENDED

FOLLOW USFOLLOW US

TECHGENIXTECHGENIX

converted by Web2PDFConvert.com

Page 14: Automating Multi-Tenancy in Exchange Server 2010 SP2 (Part ...€¦ · If you would like to read the other parts in this article series please go to: Automating Multi-Tenancy in Exchange

tools that are needed to set up, configure, maintain and enhance their networks.

AWS Greengrass for connected devices now generally availableAWS Greengrass for connected devices now generally available

How to choose the right server backup solutionHow to choose the right server backup solution

Deploying Operations Manager 2016 in a single serverDeploying Operations Manager 2016 in a single server

Copyright © 2017 TechGenix Ltd. | Privacy Policy | Terms & Conditions | Advertise

RECENT POSTSRECENT POSTS

converted by Web2PDFConvert.com