官术网_书友最值得收藏!

Introduction

Microsoft introduced some radical architectural changes in Exchange 2007, including a brand new set of management tools. PowerShell v1, along with an additional set of Exchange-Server-specific cmdlets, finally gave administrators an interface that could be used to manage the entire product from a command-line shell. This was an interesting move, and at that time, the entire graphical management console was built on top of this technology.

The same architecture still existed with Exchange 2010, and PowerShell was even more tightly integrated with this product. Exchange 2010 used PowerShell v2, which relied heavily on its new remoting infrastructure. This provides seamless administrative capabilities from a single seat with the Exchange Management Tools, whether your servers are on-premises or in the cloud.

Initially, with Exchange 2013, PowerShell Version 3 was used, but now when using PowerShell Version 5 together with cumulative updates, there are a lot of new cmdlets, core functionality changes, and even more integrations with the cloud services. When Exchange 2013 was introduced (RTM), we had 764 cmdlets and after application of Service Pack 1 and Cumulative Update 7, a total of 806 Exchange cmdlets are available. This demonstrates more features and functionalities have been added over time.

In this chapter, we'll cover some of the most common topics, as well as common tasks that will allow you to effectively write scripts with this latest release. We'll also take a look at some general tasks, such as scheduling scripts, sending e-mails, generating reports, and many more.

Performing some basic steps

To make use of all the examples in this chapter, we'll need to use the Exchange Management Shell, the Exchange Management console, and a standard PowerShell console.

You can launch the Exchange Management Shell using the following steps:

  1. Log on to a workstation or server with the Exchange Management Tools installed.
  2. Open the Exchange Management Shell by navigating to Start | All Programs | Exchange Server 2013.
  3. Click on the Exchange Management Shell shortcut.

To launch a standard PowerShell console, use the following steps:

  1. On Windows 8 or Windows 8.1, click on the Windows button, and select Windows PowerShell under Windows System.
  2. On Windows Vista, Windows 7, or Windows Server 2008 R2, open a standard PowerShell console by navigating to Start | All Programs | Accessories, click on the Windows PowerShell folder, and then click on the Windows PowerShell shortcut.
  3. On Windows XP and Windows Server 2003, navigate to Start | Programs | Accessories, click on the Windows PowerShell folder, and then click on the Windows PowerShell shortcut.
Tip

Remember to start the Exchange Management Shell using Run as administrator to avoid permission problems. In the chapter, notice that in the examples of cmdlets, I have used the back tick (`) character to break up long commands into multiple lines. The purpose is to make it easier to read. The back ticks are not required and should only be used if needed.

主站蜘蛛池模板: 富裕县| 罗城| 施秉县| 勐海县| 洱源县| 榆林市| 历史| 巴林右旗| 鄯善县| 大连市| 虹口区| 山东省| 射阳县| 巴彦淖尔市| 安陆市| 富裕县| 嘉黎县| 电白县| 大洼县| 屏东市| 洞口县| 两当县| 郑州市| 巴青县| 甘南县| 仁化县| 望江县| 古浪县| 四子王旗| 永善县| 黄骅市| 鄱阳县| 施甸县| 奎屯市| 青浦区| 克东县| 滦平县| 苗栗县| 永善县| 麻栗坡县| 阿拉尔市|