使用PowerShell获取SharePoint数据 [英] Using PowerShell to fetch SharePoint data

查看:163
本文介绍了使用PowerShell获取SharePoint数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是PowerShell的新手。我正在尝试从SharePoint网站获取数据,但在使用命令"Get-SPOSite https://sharepoint.site.com":


时出现以下错误p>
Connect-SPOService:无法连接到SharePoint Online:不支持的服务版本。

在行:1 char:1

+ Connect-SPOService https ://sharepoint.site.com/x/

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :NotSpecified :( :) [Connect-SPOService],InvalidOperationException

    + FullyQualifiedErrorId:System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService


这可能是什么原因?


谢谢,

解决方案




我是PowerShell的新手。我正在尝试从SharePoint网站获取数据,但在使用命令"Get-SPOSite https://sharepoint.site.com":




Connect-SPOService:无法连接到SharePoint Online:不支持的服务版本。

在行:1个字符:1

+ Connect-SPOService https://sharepoint.site.com/x/

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~

   + CategoryInfo      ;:NotSpecified:( :) [Connect-SPOService],InvalidOperationException

   + FullyQualifiedErrorId:System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService




这可能是什么原因?



谢谢,


Hi,

I'm pretty new at PowerShell. I'm trying to fetch data form a SharePoint site, but get the following error when using the command "Get-SPOSite https://sharepoint.site.com":

Connect-SPOService : Could not connect to SharePoint Online: unsupported version of service.
At line:1 char:1
+ Connect-SPOService https://sharepoint.site.com/x/
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-SPOService], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService

What may be the reason for this?

thanks,

解决方案

Hi,

I'm pretty new at PowerShell. I'm trying to fetch data form a SharePoint site, but get the following error when using the command "Get-SPOSite https://sharepoint.site.com":

Connect-SPOService : Could not connect to SharePoint Online: unsupported version of service.
At line:1 char:1
+ Connect-SPOService https://sharepoint.site.com/x/
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-SPOService], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService

What may be the reason for this?

thanks,


这篇关于使用PowerShell获取SharePoint数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆