gpt4 book ai didi

windows - 无法在 PowerShell 上导入 MSOnline(Connect-MsolService 错误)

转载 作者:可可西里 更新时间:2023-11-01 12:15:26 26 4
gpt4 key购买 nike

我遇到了这个问题,但找不到任何答案。问题是我尝试使用 Azure cdmlet 通过 C# 代码连接到 O365,但无法获取 connect-msolservice

""The term is not recognized" error when you try to run administrative Windows PowerShell cmdlets in Office 365"

最佳答案

查看 Microsoft 的 TechNet 文章 "Azure Active Directory Cmdlets" -> section "Install the Azure AD Module" 后,谢天谢地,这个过程似乎已经大大简化了。

截至 2016 年 6 月 30 日,为了成功执行 PowerShell 命令 Import-Module MSOnlineConnect-MsolService,您需要安装以下应用程序(仅限 64 位):

  1. 适用操作系统:Windows 7 至 10
    名称:“面向 IT 专业人员 RTW 的 Microsoft 在线服务登录助手”
    版本:7.250.4556.0(最新)
    安装程序网址:https://www.microsoft.com/en-us/download/details.aspx?id=41950
    安装程序文件名:msoidcli_64.msi
  2. 适用操作系统:Windows 7 至 10
    名称:“适用于 Windows PowerShell 的 Windows Azure Active Directory 模块”
    版本:未知,但最新安装程序文件的 SHA-256 哈希为 D077CF49077EE133523C1D3AE9A4BF437D220B16D651005BBC12F7BDAD1BF313
    安装程序网址:https://technet.microsoft.com/en-us/library/dn975125.aspx
    安装程序文件名:AdministrationConfig-en.msi
  3. 适用的操作系统:仅限 Windows 7
    名称:“Windows PowerShell 3.0”
    版本:3.0(更高版本也可能有效)
    安装程序网址:https://www.microsoft.com/en-us/download/details.aspx?id=34595
    安装程序文件名:Windows6.1-KB2506143-x64.msu

 

enter image description here enter image description here enter image description here

关于windows - 无法在 PowerShell 上导入 MSOnline(Connect-MsolService 错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16018732/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com