Book Image

Microsoft Exchange Server PowerShell Essentials

By : Biswanath Banerjee
Book Image

Microsoft Exchange Server PowerShell Essentials

By: Biswanath Banerjee

Overview of this book

PowerShell has become one of the most important skills in an Exchange administrator's armory. PowerShell has proved its mettle so widely that, if you're not already starting to learn PowerShell, then you're falling behind the industry. It isn't difficult to learn PowerShell at all. In fact, if you've ever run commands from a CMD prompt, then you'll be able to start using PowerShell straightaway. This book will walk you through the essentials of PowerShell in Microsoft Exchange Server and make sure you understand its nitty gritty effectively. You will first walk through the core concepts of PowerShell and their applications. This book discusses ways to automate tasks and activities that are performed by Exchange administrators and that otherwise take a lot of manual effort. Microsoft Exchange PowerShell Essentials will provide all the required details for Active Directory, System, and Exchange administrators to help them understand Windows PowerShell and build the required scripts to manage the Exchange Infrastructure.
Table of Contents (17 chapters)
Microsoft Exchange Server PowerShell Essentials
About the Author
About the Reviewer

Managing Active Sync devices

In Chapter 6, Handling Exchange Server Roles, you learned how to use Exchange ActiveSync policies and configure mailbox and devices. In this section, we will talk about some of the common challenges that administrators face when it comes to managing ActiveSync devices in their Exchange organization. The first thing that any administrator would like to do is to get a report of all the devices that they have in their organization.

Here is a simple script that will export the devices with their details into a CSV file. The path can be provided as a parameter, or it will use the default c:\temp\log directory:


# Array to collect Device Objects
$Output = @()

# This counter is initialized for the progress bar
$i = 0

# Get a list of ActiveSync Enabled Mailboxes in your Exchange Organization
$ASMailboxes = Get-CASMailbox -Filter {HasActivesyncDevicePartnership -eq $true} -ResultSize Unlimited -IgnoreDefaultScope | Where...