Hello all,
I am getting below error when running below powershell to change Sharepoint online site logo:
Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site 'https://test/test1' or the web site
does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are
'X-SharePointHealthScore=2, X-MSDAVEXT_Error=917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+
the+web+site+and+select+the+option+to+login+automatically., SPRequestGuid=406d9d9e-f01f-0000-373d-183e23cdb493,
request-id=406d9d9e-f01f-0000-373d-183e23cdb493, MS-CV=np1tQB/wAAA3PRg+I820kw.0, Strict-Transport-Security=max-age=31536000,
SPRequestDuration=106, SPIisLatency=0, MicrosoftSharePointTeamServices=16.0.0.8210, X-Content-Type-Options=nosniff, X-MS-InvokeApp=1;
RequireReadOnly, X-MSEdge-Ref=Ref A: 0BED02D48867420793F4FC224F6BB039 Ref B: BOM01EDGE0211 Ref C: 2018-10-30T11:06:22Z,
Content-Length=0, Content-Type=text/plain; charset=utf-8, Date=Tue, 30 Oct 2018 11:06:21 GMT, P3P=CP="ALL IND DSP COR ADM CONo CUR
CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI", X-Powered-By=ASP.NET'."
At C:\Users\RUTIWARI\Documents\Scripts\SPOLogo.ps1:22 char:1
+ $clientContext.ExecuteQuery()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : NotSupportedException
Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site 'https://test/test1' or the web site
does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are
'X-SharePointHealthScore=2, X-MSDAVEXT_Error=917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+
the+web+site+and+select+the+option+to+login+automatically., SPRequestGuid=406d9d9e-2042-0000-373d-16463d081f8c,
request-id=406d9d9e-2042-0000-373d-16463d081f8c, MS-CV=np1tQEIgAAA3PRZGPQgfjA.0, Strict-Transport-Security=max-age=31536000,
SPRequestDuration=66, SPIisLatency=0, MicrosoftSharePointTeamServices=16.0.0.8210, X-Content-Type-Options=nosniff, X-MS-InvokeApp=1;
RequireReadOnly, X-MSEdge-Ref=Ref A: 306562F9484E41EBAC01FF5D11ABA376 Ref B: BOM01EDGE0211 Ref C: 2018-10-30T11:06:22Z,
Content-Length=0, Content-Type=text/plain; charset=utf-8, Date=Tue, 30 Oct 2018 11:06:22 GMT, P3P=CP="ALL IND DSP COR ADM CONo CUR
CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI", X-Powered-By=ASP.NET'."
At C:\Users\Test\Documents\Scripts\SPOLogo.ps1:37 char:2
+ $clientContext.ExecuteQuery()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : NotSupportedException
Updated logo for , site url:
The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly
requested.
Kindly suggest me on this.
Many thanks!
Ruchi