Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering Office 365 Administration
Mastering Office 365 Administration

Mastering Office 365 Administration: A complete and comprehensive guide to Office 365 Administration - manage users, domains, licenses, and much more

Arrow left icon
Profile Icon Carpe Profile Icon Hall Profile Icon Nikkia Carter Profile Icon Rogers
Arrow right icon
£7.99 £26.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.3 (9 Ratings)
eBook May 2018 532 pages 1st Edition
eBook
£7.99 £26.99
Paperback
£32.99
Subscription
Free Trial
Renews at £16.99p/m
Arrow left icon
Profile Icon Carpe Profile Icon Hall Profile Icon Nikkia Carter Profile Icon Rogers
Arrow right icon
£7.99 £26.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.3 (9 Ratings)
eBook May 2018 532 pages 1st Edition
eBook
£7.99 £26.99
Paperback
£32.99
Subscription
Free Trial
Renews at £16.99p/m
eBook
£7.99 £26.99
Paperback
£32.99
Subscription
Free Trial
Renews at £16.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Mastering Office 365 Administration

Using PowerShell to Connect to Office 365 Services

PowerShell is an incredible tool that can make your work in Office 365 much more efficient by allowing you to automate repetitive tasks and skip past the often slow loading pages of the Office 365 administration portal.

Before you can start using PowerShell, however, you'll need to be familiar with the various modules, and how to connect to each one. Later, we'll show you how you can use PowerShell to administer various Office 365 services.

In this chapter, we'll explore:

  • Required software you'll need to download
  • Connecting to your Office 365 tenant
  • Connecting with predefined credentials
  • Connecting to Exchange Online
  • Connecting to SharePoint Online
  • Connecting to Skype for Business
  • Connecting to other services
  • Connecting to customer tenants using delegated access
  • Connecting to multiple services in a single...

Software prerequisites

Depending on which services you want to manage, there are several software components you need to manage Office 365 using PowerShell. Fortunately, these are free to the public and available for download on Microsoft's website.

Core components

To work with Office 365, you'll need to download the Azure AD management shell and potentially also the Microsoft Online Services Sign-in Assistant (MOSSIA)—formerly live ID. From time to time, Microsoft makes these available through the Office 365 administration portal, but the specific page you need to go to has changed several times over the past few years. Direct links are provided as follows for your convenience:

  • MOSSIA for IT professionals...

Connecting to your Office 365 tenant

You may already be familiar with how Microsoft uses the term tenant. For those who are new to Office 365, understand that a tenant refers to a set of Office 365 services that are isolated to a single customer. In layman's terms, this a is subscription. However, a tenant can have multiple subscriptions associated with it, for the various plans in Office 365 or Windows Azure. In fact, a single customer may choose to have more than one tenant, such as a development tenant and a production tenant.

Assuming you are the global administrator for your tenant, PowerShell will connect you to the correct tenant based on the provided username and password. This is possible because DNS suffixes used in usernames must be unique to a single tenant; they can't be used for more than one tenant at a time.

Let's connect to our tenant. We start...

Connecting to Exchange Online

Connecting to Exchange Online involves creating a remote PowerShell session. This session is created using a special URL that points to your tenant. When you import the session, it downloads all the commands that the remote Exchange server understands.

You do not need to connect to Office 365 using Connect-MsolService before connecting to Exchange Online. Note that if you run the following scripts without setting $Credentials first, it will prompt you for authentication before connecting:

$TenantName = "my365tenant"
$exchUri = "https://ps.outlook.com/PowerShell-LiveID"
if (-not [string]::IsNullOrEmpty($TenantName)) {
if (-not $TenantName.EndsWith('onmicrosoft.com')) {
$TenantName = "$TenantName.onmicrosoft.com"
}
$exchUri = "$($exchUri)?DelegatedOrg=$($TenantName)"
}
Write-Host -ForegroundColor...

Connecting to SharePoint Online

SharePoint is a beast unto itself; it could easily warrant us writing an entire book. In this chapter, we'll stay focused on the ways you can connect to SharePoint Online from PowerShell.

First, let's take a quick look at numerous ways you can interact with SharePoint:

  • SharePoint Online Management Shell
  • SharePoint REST API
  • Client-side object model
  • Legacy SharePoint web services and FrontPage Server Extensions
  • SharePoint PnP PowerShell modules and others

SharePoint Online Management Shell

SharePoint Online Management Shell is the PowerShell module that Microsoft provides which gives you access to high-level administrative functions. If you're accustomed to working in SharePoint...

Connecting to Skype for Business

Like Exchange Online, Skype for Business has its own module that uses remote PowerShell sessions. Similarly, you will be prompted if you don't provide a value for $Credentials. You might also need to specify the UserPrincipalName that corresponds to the credentials you provide—although it's not 100% clear exactly why this is necessary.

Connecting is fairly straightforward, as the example here shows:

Write-Host -ForegroundColor Cyan "Connect to Skype for Business Online"
$global:S4bSession = New-CsOnlineSession -Verbose <# :$VerbosePreference #>
-Credential $Credentials
Import-PSSession $global:S4bSession -Verbose <# :$VerbosePreference | Out-Null #>

With Skype for Business, things get a bit complicated if you're trying to connect to a site through delegated admin access. This involves providing values for...

Connecting to other services

We'll cover Office 365 Security & Compliance in Chapter 8Understanding Security and Compliance and connecting to PowerShell will be among the topics described there. For now, it is sufficient to understand that these tools use the remote PowerShell session techniques, so working with them is essentially the same as connecting Exchange Online and Skype for Business. There is one caveat to keep in mind: Security & Compliance requires special roles in Azure AD, so it will not work through delegated administration the way other components do.

There are other services such as Windows Azure Resource Management and Azure Information Protection, each of which has their own special technique to connect and manage. To cover each one here would be impractical. Fortunately, there is a great deal of information online that can help you get started...

Connecting to customer tenants using delegated access

If you're an IT professional providing services to Office 365 customers, connecting to Office 365 tenants for your clients can be a bit more complicated than the examples shown previously.

Most commands in the Azure AD PowerShell module will allow you to specify a -TenantId parameter. This is a GUID associated with each of your customer's tenants. But where does this value come from? You can use the Get-MsolPartnerContract to display a list of tenant IDs for the clients you have delegated access to:

Get-MsolPartnerContract -All

Unfortunately, this ID by itself is not very useful. You'll have to combine it somehow with other commands to get something you can identify as a specific client.

For example, the following command will pipe all your customer tenants into a Foreach-Object loop and output the domains associated...

Software prerequisites


Depending on which services you want to manage, there are several software components you need to manage Office 365 using PowerShell. Fortunately, these are free to the public and available for download on Microsoft's website.

Core components

To work with Office 365, you'll need to download the Azure AD management shell and potentially also the Microsoft Online Services Sign-in Assistant (MOSSIA)—formerly live ID. From time to time, Microsoft makes these available through the Office 365 administration portal, but the specific page you need to go to has changed several times over the past few years. Direct links are provided as follows for your convenience:

The Sign-in Assistant download labeled for IT professionals will allow you to use either the 32- or 64-bit version if you wish; it was intended...

Connecting to your Office 365 tenant


You may already be familiar with how Microsoft uses the term tenant. For those who are new to Office 365, understand that a tenant refers to a set of Office 365 services that are isolated to a single customer. In layman's terms, this a is subscription. However, a tenant can have multiple subscriptions associated with it, for the various plans in Office 365 or Windows Azure. In fact, a single customer may choose to have more than one tenant, such as a development tenant and a production tenant.

Assuming you are the global administrator for your tenant, PowerShell will connect you to the correct tenant based on the provided username and password. This is possible because DNS suffixes used in usernames must be unique to a single tenant; they can't be used for more than one tenant at a time.

Let's connect to our tenant. We start this process by launching the Azure Active Directory module for PowerShell.

Type the following command and hit Enter:

# Import-Module...

Connecting to Exchange Online


Connecting to Exchange Online involves creating a remote PowerShell session. This session is created using a special URL that points to your tenant. When you import the session, it downloads all the commands that the remote Exchange server understands.

You do not need to connect to Office 365 using Connect-MsolService before connecting to Exchange Online. Note that if you run the following scripts without setting $Credentials first, it will prompt you for authentication before connecting:

$TenantName = "my365tenant"
$exchUri = "https://ps.outlook.com/PowerShell-LiveID"
if (-not [string]::IsNullOrEmpty($TenantName)) {
  if (-not $TenantName.EndsWith('onmicrosoft.com')) {
    $TenantName = "$TenantName.onmicrosoft.com"
  }
  $exchUri = "$($exchUri)?DelegatedOrg=$($TenantName)"
}
Write-Host -ForegroundColor Cyan "Connect to Exchange Online"
Write-Host "Uri: $exchUri "
$global:ExoSession = New-PSSession -ConfigurationName Microsoft.Exchange
-ConnectionUri $exchUri...
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • •Perform common to advanced-level management and administrative tasks for your organization with Office 365
  • •Become an Office 365 generalist who can work with the entire stack—not just specific products
  • •An advanced-level guide that will teach you to implement enterprise-level services into your organization, no matter the size of the business

Description

In today's world, every organization aims to migrate to the cloud in order to become more efficient by making full use of the latest technologies. Office 365 is your one-stop solution to making your organization reliable, scalable, and fast. This book will start with an overview of Office 365 components, and help you learn how to use the administration portal, and perform basic administration. It then goes on to cover common management tasks, such as managing users, admin roles, groups, securing Office 365, and enforcing compliance. In the next set of chapters, you will learn about topics including managing Skype for Business Online, Yammer, OneDrive for Business, and Microsoft Teams. In the final section of the book, you will learn how to carry out reporting and monitor Office 365 service health. By the end of this book, you will be able to implement enterprise-level services with Office 365 based on your organization's needs.

Who is this book for?

This book targets architects, sys admins, engineers, and administrators who are working with Office 365 and are responsible for configuring, implementing, and managing Office 365 in their organization. A prior knowledge of Office 365 and Exchange servers is mandatory.

What you will learn

  • • Understand the vast Office 365 feature set
  • • Understand how workloads and applications interact and integrate with each other
  • • Connect PowerShell to various Office 365 services and perform tasks
  • • Manage Skype for Business Online
  • • Get support and monitor Office 365 service health
  • • Manage and administer identities and groups efficiently

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 22, 2018
Length: 532 pages
Edition : 1st
Language : English
ISBN-13 : 9781787127449
Vendor :
Microsoft
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 22, 2018
Length: 532 pages
Edition : 1st
Language : English
ISBN-13 : 9781787127449
Vendor :
Microsoft
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
£16.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
£169.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts
£234.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total £ 82.97
Mastering Office 365 Administration
£32.99
Office 365 Essentials
£24.99
Office 365 User Guide
£24.99
Total £ 82.97 Stars icon
Banner background image

Table of Contents

15 Chapters
The Office 365 Administration Portal Chevron down icon Chevron up icon
Using PowerShell to Connect to Office 365 Services Chevron down icon Chevron up icon
Administering Azure Active Directory Chevron down icon Chevron up icon
Administering Exchange Online – Essentials Chevron down icon Chevron up icon
Administering Exchange – Advanced Topics Chevron down icon Chevron up icon
Administering SharePoint Online Chevron down icon Chevron up icon
Office 365 Groups and Microsoft Teams Administration Chevron down icon Chevron up icon
Understanding Security and Compliance Chevron down icon Chevron up icon
Administering Skype for Business Chevron down icon Chevron up icon
Administering Yammer Chevron down icon Chevron up icon
Administering OneDrive for Business Chevron down icon Chevron up icon
Power BI Administration Chevron down icon Chevron up icon
Administering PowerApps, Flow, Stream, and Forms Chevron down icon Chevron up icon
Usage Reporting Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.3
(9 Ratings)
5 star 22.2%
4 star 44.4%
3 star 0%
2 star 11.1%
1 star 22.2%
Filter icon Filter
Top Reviews

Filter reviews by




Hairy BongoBanger May 29, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It's a great book. You will learn everything to do withe cloud based apps from Microsoft. As a reader of this material, you will need to set yourself up with test accounts to get use to the functionality of M365 and Azure. I use this as a guide at my work place. It is worth buying.
Amazon Verified review Amazon
Ayman519 Sep 21, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very nice and need to know information .Thanks
Amazon Verified review Amazon
Alisa Mar 01, 2019
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This book is really helpful way to start as an Office 365 Administration. It covers the basics and is easy to follow along with.
Amazon Verified review Amazon
Karl Hershberger Jan 26, 2020
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Lots of helpful lessons. Written to be understandable and enjoyable. The only chapter that was difficult was the powershell. A good book for the money.
Amazon Verified review Amazon
Norm Mar 26, 2019
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This book is a very useful overview of basic and some not-so-basic Office 365 administration features. But, it's not a deep dive and the reader is not going to be a "master" of Office 365 administration just by reading this book. Very good for someone who needs to know the basics - clearly written and well illustrated - and a good starting point. The inclusion of some basic PowerShell scripts is helpful, also.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.