Microsoft Office Tutorials and References
In Depth Information
Office 365 examples and exercises
As you can see, the complexity of Windows PowerShell becomes a little less daunting if you
leverage the ISE as an authoring tool. Aside from Intellisense and the Command Add-on,
the ISE is also a more pleasant and productive way to write your scripts. We will use the ISE
more when we begin our exercises in the next section.
Office 365 examples and exercises
For the remainder of this chapter, we will focus on using the ISE and combining it with
some of the common Windows PowerShell cmdlets to manage Office 365.
As an introduction to Office 365 cmdlets, we will present several exercises that cover
common Office 365 administration tasks. For these exercises, we will be using a different tenant,, because this is our test tenant. After we understand the
changes created with our Windows PowerShell cmdlets, they can be implemented in our
production tenant.
It is a best practice to have a test tenant with a few users so you can test your Windows
PowerShell scripts. Alternatively, you can use your production tenant with test users. In
both scenarios, the test users most likely will have to be assigned Office 365 licenses, at
least during script testing. Microsoft does not provide free test tenants or free test user
Establishing a Windows PowerShell session with Exchange
This first exercise is a review of the cmdlets that enable you to establish a Windows
PowerShell session ( PSSession ) connection with Exchange Online in Office 365. Each of the
following exercises builds on this exercise. Follow these steps to establish a PSSession .
1. Start the ISE.
2. Type the following commands in the Script Pane and press Enter, or you can
download the additional files from the Office 365 admin center. On the Script Pane,
open O365-Admin-Connections.ps1 and click the Run option on the ISE ribbon.
Import-Module MSonline
$cred = Get-Credential
Connect-MsolService -Credential $cred
Search JabSto ::

Custom Search