本文介绍了Sharepoint Online Powershell命令Set-SPOSite错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在使用以下简单代码将Windows Powershell连接到SharePoint Online.

I am using the following simple code to connect from windows powershell to SharePoint Online.

$AdminURL = "https://mywork-admin.sharepoint.com"
$Credential = Get-Credential
Connect-SPOService -url $Adminurl -credential $Credential
write-host "Connected"
Set-SPOSite -Identity "https://mywork.sharepoint.com/sites/developer" -Title "updated title" 

它总是给我以下错误:

Set-SPOSite : Value cannot be null.
Parameter name: source
At line:1 char:1
+ Set-SPOSite -Identity "https://spdevframework.sharepoint.com/sites/developer" -T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-SPOSite], ServerException
    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSite

我能够成功运行命令Get-SPOSite,但是对于Set-SPOSite我会收到错误消息.

I am able to run the command Get-SPOSite successfully, but for Set-SPOSite I am getting the error.

因此,我无法继续进行下去.

Because of which I am not able to proceed further.

请提出我需要改变的地方.

Kindly suggest what I need to change.

推荐答案

我可以像您设置的那样使用SET-SPOSite重现此问题.

I could reproduce this issue using SET-SPOSite like you set.

作为一种解决方法,您可以使用

As a workaround, you can use a variable like


供您参考的演示



这篇关于Sharepoint Online Powershell命令Set-SPOSite错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 13:07