'Connect-MsolService' is not recognized as the name of a cmdlet

后端 未结 4 1187
鱼传尺愫
鱼传尺愫 2021-02-09 01:13
        PSCommand commandToRun = new PSCommand();
        commandToRun.AddCommand(\"Connect-MsolService\");
        commandToRun.AddParameter(\"Credential\", new PSCrede         


        
4条回答
  •  悲&欢浪女
    2021-02-09 01:43

    All links to the Azure Active Directory Connection page now seem to be invalid.

    I had an older version of Azure AD installed too, this is what worked for me. Install this.

    Run these in an elevated PS session:

    uninstall-module AzureAD  # this may or may not be needed
    install-module AzureAD
    install-module AzureADPreview
    install-module MSOnline
    

    I was then able to log in and run what I needed.

提交回复
热议问题