Skip to content

Commit 6ad83f7

Browse files
authored
Removes > to test validation error.
1 parent 392a25d commit 6ad83f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sharepoint/sharepoint-ps/sharepoint-pnp/Connect-PnPOnline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ If no credentials have been specified, and the CurrentCredentials parameter has
243243

244244
*For SharePoint Online*: If legacy authentication protocols have been disabled (i.e. When ```powershell(Get-PnPTenant).LegacyAuthProtocolsEnabled``` returns False), the connection attempt will fail with a message such as the following when using a generic credential object (such as that created by ```powershellGet-Credential```) or when using the default options, which prompts for a username and password within the shell:
245245

246-
>Failed to connect to (site), Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site (site) or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are 'X-SharePointHealthScore=0, 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.
246+
Failed to connect to (site), Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site (site) or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are 'X-SharePointHealthScore=0, 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.
247247

248248
Instead, ensure that you specify the appropriate options that support modern authentication, such as connections with the "-UseWebLogin" or "-PnPO365ManagementShell" parameters or certificate based authentication.
249249

0 commit comments

Comments
 (0)