Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Microsoft Exchange Server 2016 PowerShell Cookbook
  • Toc
  • feedback
Microsoft Exchange Server 2016 PowerShell Cookbook

Microsoft Exchange Server 2016 PowerShell Cookbook

By : Mota, Nuno Filipe M Mota, Mike Pfeiffer, Andersson
5 (1)
close
Microsoft Exchange Server 2016 PowerShell Cookbook

Microsoft Exchange Server 2016 PowerShell Cookbook

5 (1)
By: Mota, Nuno Filipe M Mota, Mike Pfeiffer, Andersson

Overview of this book

We start with a set of recipes on core PowerShell concepts. This will provide you with a foundation for the examples in the book. Next, you'll see how to implement some of the common exchange management shell tasks, so you can effectively write scripts with this latest release. You will then learn to manage Exchange recipients, automate recipient-related tasks in your environment, manage mailboxes, and understand distribution group management within the Exchange Management Shell. Moving on, we'll work through several scenarios where PowerShell scripting can be used to increase your efficiency when managing databases, which are the most critical resources in your Exchange environment. Towards the end, you'll discover how to achieve Exchange High Availability and how to secure your environment, monitor the health of Exchange, and integrate Exchange with Office Online Server, Skype for Business Server, and Exchange Online (Office 365). By the end of the book, you will be able to perform administrative tasks efficiently.
Table of Contents (17 chapters)
close

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can read the content of a file into the shell using the Get-Content cmdlet"

Commands and blocks of code are set as follows:

Get-Mailbox –ResultSize Unlimited | Out-File C:\report.txt

Commands like this can be invoked interactively in the shell, or from within a script or function.

Most of the commands you'll be working with will be very long. In order for them to fit into the pages of this book, we'll need to use line continuation. For example, here is a command that creates a mailbox:

New-Mailbox -UserPrincipalName [email protected] `
-FirstName John `
-LastName Smith `
-Alias jsmith `
-Database DB1 `
-Password $password

Notice that the last character on each line is the backtick (`) symbol, also referred to as the grave accent. This is PowerShell's line continuation character. You can run this command as is, but make sure there aren't any trailing spaces at the end of each line. You can also remove the backtick and carriage returns, and run the command on one single line. Just ensure that the spaces between the parameters and arguments are maintained.

You'll also see long pipeline commands formatted like the following example:

Get-Mailbox -ResultSize Unlimited |
Select-Object DisplayName, ServerName, Database |
Export-Csv c:\mbreport.csv -NoTypeInformation

PowerShell uses the pipe character (|) to send objects' output from a command down the pipeline, so it can be used as input by another command. The pipe character does not need to be escaped. You can enter the previous command as is or you can format the command so that everything is in one line.

Any command-line input or output that must be done interactively at the shell console is written as follows:

[PS] C:\>Get-Mailbox administrator | FT ServerName, Database -Auto
ServerName Database
---------- --------
mbx1 DB01

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Clicking the Next button moves you to the next screen."

Warnings or important notes appear in a box like this.

Tips and tricks appear like this.

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete