PowerShell Management Series (16) Adding the Exchange snap-in in PowerShell

Source: Internet
Author: User

-----provide ad\exchange\lync\sharepoint\crm\sc\o365 and other Microsoft product implementation and outsourcing, qq:185426445. Phone 18666943750

It's too much trouble to find the Exchange Management Shell every time, but we can actually make it easier for you to directly invoke Exchange's administrative commands directly within the PowerShell console.

The following is a PowerShell call to each version of Exchange.

Exchange 2007

Add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin

Exchange 2010

Add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010

Exchange 2013

Add-pssnapin Microsoft.Exchange.Management.PowerShell.SnapIn

You can also use * instead

Add-pssnapin microsoft.exchange* will be all right.

The command for Windows server 2008r2 to invoke the ad module is as follows:

Import-module ActiveDirectory

Windows Server 2012 has imported this module by default, and PowerShell automatically calls the Ad module when we enter the ad-related PowerShell command.

If you want to use the ActiveDirectory module on 2003, you must have a 2008 server in the domain or an Active Directory (AD) on the Win7 pc,2003 server.

The . NET Framework 3.5 SP1 must be installed on 2003DC, and then run a patch for the. NET Framework 3.5 SP1 ( http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=20556)

Download and install the ADWS service from Microsoft ( Http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=008940c6-0296-4597-be3e-1d24c1cf0dda)

once installed, restart the 2003 server, open the PowerShell window on the WIN7 PC, and enter the Import-module activedirectory. If you cannot connect to the active Directory Management Gateway Service, refer to the http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=969429&kbln =ZH-CN instructions, download another patch (http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=969429&kbln= ZH-CN) repair the ADWS service on the server.

This article is from the "Zhou Ping Microsoft Technology Exchange Platform" blog, please be sure to keep this source http://yuntcloud.blog.51cto.com/1173839/1612584

PowerShell Management Series (16) Add an Exchange snap-in to PowerShell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.