当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 修复“无可用连接。运行此 CmdLet 之前使用 Connect-SPOService”。 SharePoint Online PowerShell 中出现错误!

作者:精品下载站 日期:2024-12-15 00:07:10 浏览:15 分类:玩电脑

修复“无可用连接。运行此 CmdLet 之前使用 Connect-SPOService”。 SharePoint Online PowerShell 中出现错误!


问题:出现此错误,“没有可用连接。在运行此 CmdLet 之前使用 Connect-SPOService。”,同时尝试通过 PowerShell 通过 SharePoint Online Management Shell 连接 SharePoint Online。

[玩转系统] 修复“无可用连接。运行此 CmdLet 之前使用 Connect-SPOService”。 SharePoint Online PowerShell 中出现错误!

解决方案:

您必须先使用 Connect-SPOService PowerShell cmdlet 连接到 SharePoint Online Service,然后再执行 SharePoint Online 的任何其他 cmdlet。


#Step: 1: Connect to SharePoint Online
Connect-SPOService -url "https://Crescent-admin.sharepoint.com"

#Step 2: Run Cmdlet for SharePoint Online
Get-SPOUser -Site "https://Crescent.sharepoint.com/sites/marketing"

运行 Connect-SPOService cmdlet 时,系统会提示您输入凭据。连接成功后,您可以继续运行所需的 cmdlet。不要忘记将租户管理 URL“https://Crescent-admin.sharepoint.com”替换为“https://YOURDOMAIN-admin.sharepoint.com”。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯