Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Microsoft Exchange Server PowerShell Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Microsoft Exchange Server PowerShell Essentials

Microsoft Exchange Server PowerShell Essentials

By : Banerjee
5 (3)
close
close
Microsoft Exchange Server PowerShell Essentials

Microsoft Exchange Server PowerShell Essentials

5 (3)
By: 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 (12 chapters)
close
close
11
Index

Writing a basic script


As this book is about managing Exchange using PowerShell, let's use the PowerShell client to save a draft message in the administrator's mailbox. I have installed the EWS managed API 2.2 at C:\Program Files\Microsoft\Exchange\Web Services\2.2, which is the default location. You can install it on any other location and ensure that the correct path is referenced.

In my lab, I am using Exchange 2013 Service Pack1, but the process is similar in Exchange 2016 and Exchange online. The only thing that you need to understand is how to target the correct Exchange version that is described next.

The first step is to import the Microsoft.Exchange.WebServices.dll module in PowerShell using a variable:

$EWSDllPath = "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll"
Import-Module $EWSDllPath

The next step is to create the service object just as we did in the earlier sections using C# code in Visual Studio:

$Exchange2013 = New-Object Microsoft.Exchange...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Microsoft Exchange Server PowerShell Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon