Azure Can';找不到如何加载包含Get-MsolUser的库
我尝试使用Get-MsolUser;我得到以下信息: 获取MsolUser:术语«获取MsolUser»不是一个常见名称 命令小程序、功能、脚本和程序 不可切割的 英文: Get-MsolUser:术语“Get-MsolUser”不能识别为cmdlet、函数、脚本文件或可操作程序的名称。请检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试 如何获得包含此cmdlet的任何软件包的信息?来自: cmdlet Get-MsolUser属于Azure AD Powershell(V1)模块(MSOnline),因此在使用此命令之前,我们需要安装并连接MSOnline模块Azure Can';找不到如何加载包含Get-MsolUser的库,azure,powershell,azure-active-directory,Azure,Powershell,Azure Active Directory,我尝试使用Get-MsolUser;我得到以下信息: 获取MsolUser:术语«获取MsolUser»不是一个常见名称 命令小程序、功能、脚本和程序 不可切割的 英文: Get-MsolUser:术语“Get-MsolUser”不能识别为cmdlet、函数、脚本文件或可操作程序的名称。请检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试 如何获得包含此cmdlet的任何软件包的信息?来自: cmdlet Get-MsolUser属于Azure AD Powershell(V1)模块
Connect-MsolService
# Once you connect MsolService, now run the Get-MsolUser command.
Get-MsolUser
安装MSOnline模块:
早些时候,您需要下载一个可执行文件(exe二进制文件)来安装此模块,但现在Microsoft已将该文件过期,您只能通过powershell进行安装。以管理员身份运行权限打开Powershell控制台,然后运行以下命令:
Install-Module MSOnline -Force
连接/导入MSOnline模块:
安装MSOnline模块后,运行以下命令以连接MSOnline模块
Connect-MsolService
# Once you connect MsolService, now run the Get-MsolUser command.
Get-MsolUser
注意:这是较旧的用于Azure Active Directory的MSOnline V1 PowerShell模块。鼓励客户使用更新的Azure Active Directory V2 PowerShell模块,而不是此模块。有关V2模块的更多信息,请参阅