Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 Hall Profile Icon Rogers Profile Icon Carpe Profile Icon Hall Profile Icon Nikkia Carter Profile Icon Rogers +2 more Show less
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.3 (9 Ratings)
Paperback May 2018 532 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Hall Profile Icon Rogers Profile Icon Carpe Profile Icon Hall Profile Icon Nikkia Carter Profile Icon Rogers +2 more Show less
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.3 (9 Ratings)
Paperback May 2018 532 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781787288638
Vendor :
Microsoft
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.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
€189.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
€264.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

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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.