尝试使用此命令Connect-MsolService
时,为什么会出现此错误Connect-MsolService : The user name or password is incorrect. Verify your user name, and then type your
password again.
At line:1 char:1
+ Connect-MsolService
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Connect-MsolService], MicrosoftOnlineException
+ FullyQualifiedErrorId : 0x80048821,Microsoft.Online.Administration.Automation.ConnectMsolService
我尝试登录的用户是全局管理员。
答案 0 :(得分:1)
您是否已将凭据对象添加到cmdlet,因为如果您当前登录的用户,它不会执行本机直通。
例如Connect-MSOLOnline -Credential(Get-credential)