![](/img/trans.png)
[英]Error Copying the Folder! Exception calling "ExecuteQuery" with "0" argument(s): "The remote server returned an error: (400) Bad Request."
[英]The remote server returned an error: (400) Bad Request Visual Code
我试图在 Visual Code 的帮助下连接到我的 Sharepoint Online 网站集,但出现以下错误 - 远程服务器返回错误:(400) 错误请求。 代码-
Add-Type -Path "C:\dlls\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\dlls\Microsoft.SharePoint.Client.Runtime.dll"
$userName = "***"
$password = ConvertTo-SecureString "" -AsPlainText -Force
$webURL="https://test.sharepoint.com/sites/test/"
$Context=New-Object Microsoft.SharePoint.Client.ClientContext($webURL)
$Context.Credentials=New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username,$password)
$Web=$context.Web
$Context.Load($web)
$Context.executeQuery()
Write-host $Web.URL
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.