Provision Tenants

Before we can fully provision our tenant, we need to declare some variables that we'll use throughout the following sections. The first thing we'll need is the name of the tenant, or customer, along with the username and email address of the user who will be set as the tenant administrator. For the tenant name, we want to use the value that is used for the OU and the hostname of the tenant's root Site Collection (if you need these to be different values, then declare separate variables; for our purposes, we will use a single value for both):

$tenantName = “Customer1”
$tenantAdminLogin = “domain\customer1admin”
$tenantAdminEmail = “”

Next, we need to get an instance of the Web Application that will host ...

Get Automating Microsoft® SharePoint® 2010 Administration with Windows PowerShell® 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.