Book Image

Mastering Office 365 Administration

By : Thomas Carpe, Nikkia Carter, Alara Rogers
Book Image

Mastering Office 365 Administration

By: Thomas Carpe, Nikkia Carter, Alara Rogers

Overview of this book

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.
Table of Contents (20 chapters)
Title Page
Packt Upsell
Contributors
Preface
10
Administering Yammer
Index

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...