MSOnline can't be imported on PowerShell (Connect-MsolService error)

前端 未结 6 2149
广开言路
广开言路 2020-12-02 23:55

I had this issue and couldn´t find any answer. The issue was that I was trying to use Azure cdmlets to connect to O365 via c# code, but I couldn´t get the connect-msol

6条回答
  •  借酒劲吻你
    2020-12-03 00:17

    After reviewing Microsoft's TechNet article "Azure Active Directory Cmdlets" -> section "Install the Azure AD Module", it seems that this process has been drastically simplified, thankfully.

    As of 2016/06/30, in order to successfully execute the PowerShell commands Import-Module MSOnline and Connect-MsolService, you will need to install the following applications (64-bit only):

    1. Applicable Operating Systems: Windows 7 to 10
      Name: "Microsoft Online Services Sign-in Assistant for IT Professionals RTW"
      Version: 7.250.4556.0 (latest)
      Installer URL: https://www.microsoft.com/en-us/download/details.aspx?id=41950
      Installer file name: msoidcli_64.msi
    2. Applicable Operating Systems: Windows 7 to 10
      Name: "Windows Azure Active Directory Module for Windows PowerShell"
      Version: Unknown but the latest installer file's SHA-256 hash is D077CF49077EE133523C1D3AE9A4BF437D220B16D651005BBC12F7BDAD1BF313
      Installer URL: https://technet.microsoft.com/en-us/library/dn975125.aspx
      Installer file name: AdministrationConfig-en.msi
    3. Applicable Operating Systems: Windows 7 only
      Name: "Windows PowerShell 3.0"
      Version: 3.0 (later versions will probably work too)
      Installer URL: https://www.microsoft.com/en-us/download/details.aspx?id=34595
      Installer file name: Windows6.1-KB2506143-x64.msu

     

提交回复
热议问题