-----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