As we said before, the things that can be done and can be achieved through the O365 Management Center, the Exchange Admin Center, the Lync Admin Center SharePoint Central Administration Center, are far from satisfying the customer's time requirements. Azure AD management tasks can be performed using the Azure Active Directory module cmdlets for Windows PowerShell. You can also use a single Windows PowerShell window to connect and manage Office 365, SharePoint, Exchange, and Lync management tasks at the same time. Let's take a look at how we can do that now.
1. Prerequisites
System requirements for installing the Azure AD module: Windows 8.1, Windows 8, Windows 7, Windows Server R2, Windows Server 2012, or Windows Server R2.
Software Requirements and download links
A. Microsoft Online Services login assistant, the download link is as follows:
http://www.microsoft.com/zh-cn/download/details.aspx?id=41950
B. Microsoft Azure Active Directory module, download the following link:
http://go.microsoft.com/fwlink/p/?linkid=236297
c. Windows PowerShell Module for Lync Online, download the following link:
http://www.microsoft.com/en-us/download/details.aspx?id=39366
d. SharePoint Online Management Shell, download the following link:
http://www.microsoft.com/en-us/download/details.aspx?id=35588
Note:
(1) Since October 20, 2014, the Azure Active Directory module (32-bit version) for Windows PowerShell will be officially deactivated;
(2) Exchange Online is not a standalone module and is already included in azure AD;
(3) The Microsoft Online Services Login Assistant must be installed before you can install additional components.
2. Install prerequisite Components
650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/08/wKioL1T0euuw3uzYAAIQrTF4iy8945.jpg " alt= "Wkiol1t0euuw3uzyaaiqrtf4iy8945.jpg"/>
650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/0C/wKiom1T0eiKgRNL5AAIiOUwD3yk068.jpg " alt= "Wkiom1t0eikgrnl5aaiiouwd3yk068.jpg"/>
650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M02/5A/0C/wKiom1T0emGjfmYdAAE2Lh4rAbY690.jpg " alt= "Wkiom1t0emgjfmydaae2lh4raby690.jpg"/>
650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/08/wKioL1T0e5jDPbpmAAFaz0SMZgI002.jpg " alt= "Wkiol1t0e5jdpbpmaafaz0smzgi002.jpg"/>
650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/08/wKioL1T0e8PgyVjgAAIQT8xY4Z4566.jpg " alt= "Wkiol1t0e8pgyvjgaaiqt8xy4z4566.jpg"/>
650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/0C/wKiom1T0es-S_n73AAGRfC-LljM215.jpg " alt= "Wkiom1t0es-s_n73aagrfc-lljm215.jpg"/>
650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/08/wKioL1T0fQHjuNSsAAEgHR22Q_A230.jpg " alt= "Wkiol1t0fqhjunssaaeghr22q_a230.jpg"/>
650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/0C/wKiom1T0fBWz-ehKAAEWT_BQCwc419.jpg " alt= "Wkiom1t0fbwz-ehkaaewt_bqcwc419.jpg"/>
650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/08/wKioL1T0fUuSw7QSAAJIaSwrzlI763.jpg " alt= "Wkiol1t0fuusw7qsaajiaswrzli763.jpg"/>
650) this.width=650; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M02/5A/08/wKioL1T0fWvihwm5AAEN0kllLTg597.jpg "alt=" Wkiol1t0fwvihwm5aaen0kllltg597.jpg "/>
650) this.width=650; "title=" 11.png "src=" http://s3.51cto.com/wyfs02/M02/5A/0C/wKiom1T0fH-j_GdbAALmdB_PsXc831.jpg "alt=" Wkiom1t0fh-j_gdbaalmdb_psxc831.jpg "/>
650) this.width=650; "title=" 12.png "src=" http://s3.51cto.com/wyfs02/M00/5A/08/wKioL1T0fbDx5_s0AAGy5mPTwss537.jpg "alt=" Wkiol1t0fbdx5_s0aagy5mptwss537.jpg "/>
650) this.width=650; "title=" 13.png "src=" http://s3.51cto.com/wyfs02/M00/5A/0C/wKiom1T0fMughFUMAAL_Xe8hnC0037.jpg "alt=" Wkiom1t0fmughfumaal_xe8hnc0037.jpg "/>
3. Connect to Office 365
650) this.width=650; "title=" 14.png "src=" http://s3.51cto.com/wyfs02/M01/5A/0C/wKiom1T0fTyiyByDAAFqDnDoIrw150.jpg "alt=" Wkiom1t0ftyiybydaafqdndoirw150.jpg "/>
650) this.width=650; "title=" 15.png "src=" http://s3.51cto.com/wyfs02/M02/5A/08/wKioL1T0fm7AegHHAAHNa6HtGJo973.jpg "alt=" Wkiol1t0fm7aeghhaahna6htgjo973.jpg "/>
650) this.width=650; "title=" 16.png "src=" http://s3.51cto.com/wyfs02/M00/5A/08/wKioL1T0fp-jwpQpAAIIEsp1J9s831.jpg "alt=" Wkiol1t0fp-jwpqpaaiiesp1j9s831.jpg "/>
650) this.width=650; "title=" 17.png "src=" http://s3.51cto.com/wyfs02/M00/5A/08/wKioL1T0f2KRPb8_AAIb2XfnT2A525.jpg "alt=" Wkiol1t0f2krpb8_aaib2xfnt2a525.jpg "/>
650) this.width=650; "title=" 18.png "src=" http://s3.51cto.com/wyfs02/M02/5A/08/wKioL1T0fvbSP8HJAAF9fTI3UKc861.jpg "alt=" Wkiol1t0fvbsp8hjaaf9fti3ukc861.jpg "/>
650) this.width=650; "title=" 19.png "src=" http://s3.51cto.com/wyfs02/M00/5A/0C/wKiom1T0fp-QO3lAAAOd-75z8Gk621.jpg "alt=" Wkiom1t0fp-qo3laaaod-75z8gk621.jpg "/>
4. Connect to SharePoint Online
650) this.width=650; "title=" 20.png "src=" http://s3.51cto.com/wyfs02/M02/5A/08/wKioL1T0gELj-8YVAAmFBFHvND8749.jpg "alt=" Wkiol1t0gelj-8yvaamfbfhvnd8749.jpg "/>
650) this.width=650; "title=" 21.png "src=" http://s3.51cto.com/wyfs02/M02/5A/0C/wKiom1T0f1mSaQ_2AAEGxdLTv0I471.jpg "alt=" Wkiom1t0f1msaq_2aaegxdltv0i471.jpg "/>
Note: The above is a command to connect to the global version, use the following command when connecting to the Chinese version of O365 SharePoint online:
Connect-sposervice-url https://itlight-admin.sharepoint.cn-credential $credential "
650) this.width=650; "title=" 22.png "src=" http://s3.51cto.com/wyfs02/M00/5A/0C/wKiom1T0f7iBW-cZAAJEA40VfSE274.jpg "alt=" Wkiom1t0f7ibw-czaajea40vfse274.jpg "/>
5. Connect to Lync Online
650) this.width=650; "title=" 23.png "src=" http://s3.51cto.com/wyfs02/M00/5A/0C/wKiom1T0gADCpf38AAMzh2o_MPE558.jpg "alt=" Wkiom1t0gadcpf38aamzh2o_mpe558.jpg "/>
I had this problem at first, and finally, after looking at the TechNet documentation and consulting O365 Technical support, I found out because of the executionpolicy issue. Change the default policy to "remotesigned" and re-import the module.
650) this.width=650; "title=" 24.png "src=" http://s3.51cto.com/wyfs02/M01/5A/08/wKioL1T0gUXhGx67AAm6Lds98Ds362.jpg "alt=" Wkiol1t0guxhgx67aam6lds98ds362.jpg "/>
650) this.width=650; "title=" 25.png "src=" http://s3.51cto.com/wyfs02/M00/5A/08/wKioL1T0gY3zcfneAAfNa8gaxDI985.jpg "alt=" Wkiol1t0gy3zcfneaafna8gaxdi985.jpg "/>
6. Connect to Exchange Online
Chinese version O365
$Session = New-pssession-configurationname Microsoft.exchange-connectionuri https://partner.outlook.cn/ Powershell-liveid/-credential $UserCredential-authentication basic-allowredirection
Import-pssession $Session
Global version O365
$exchangeSession = New-pssession-configurationname Microsoft.exchange-connectionuri "https://outlook.office365.com /powershell-liveid/"-credential $credential-authentication" Basic "-allowredirection
Import-pssession $exchangeSession
650) this.width=650; "title=" 26.png "src=" http://s3.51cto.com/wyfs02/M00/5A/0C/wKiom1T0gO6jGacFAAJX_7m3msU461.jpg "alt=" wkiom1t0go6jgacfaajx_7m3msu461.jpg "/>650" this.width=650; "title=" 27.png "src=" http://s3.51cto.com/ Wyfs02/m01/5a/08/wkiol1t0gg_qi5gxaano-das_5o259.jpg "alt=" Wkiol1t0gg_qi5gxaano-das_5o259.jpg "/>
through the entire configuration process above, we have implemented unified management of Office 365, Exchange Online, Lync online, and SharePoint online through single Windows PowerShell. In this way, the bulk management operation is very convenient, especially the work that many management centers cannot achieve.
This article from "Bright Future" blog, declined reprint!
Office 365 Series Nine: Managing the O365 platform with Windows PowerShell