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
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Writing basic EWS managed API code


In order to get started with creating your first EWS managed API application, follow these prerequisites:

  • You will need an Exchange On-Premise server or an Exchange online subscription.

  • You will need any C# compiler or Visual Studio that supports the .NET framework 4 or later. I am going to show you the steps using Visual Studio 2013. The steps may vary depending on the version of Visual Studio used.

  • You will need the EWS managed API 32 or 64 bit depending on your system architecture.

Here are the steps:

  1. Launch Visual Studio 2013 and navigate to File Menu, New, Project to launch the New Project dialog box

    Use the Visual C# from the Templates pane and select Console Application.

  2. Name the project as EWSTestEmail and click on OK. This will create the project and open the Program.cs code document window.

  3. On the View Menu, click on the Open the Solution Explorer window.

  4. Right-click on References in the Solution Explorer windows and the EWSTestEmail project. Select Add...