Skip to content

Commit 66d1c0d

Browse files
committed
Merge branch 'master' into chrisda
2 parents 2bf0932 + b99ae58 commit 66d1c0d

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

exchange/exchange-ps/exchange/policy-and-compliance/Remove-MessageClassification.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
2828
## EXAMPLES
2929

3030
### -------------------------- Example 1 --------------------------
31-
```
31+
32+
```powershell
3233
Remove-MessageClassification MyMessageClassification
3334
```
3435

@@ -117,8 +118,8 @@ To see the input types that this cmdlet accepts, see Cmdlet Input and Output Typ
117118
###
118119
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types (https://go.microsoft.com/fwlink/p/?LinkId=616387). If the Output Type field is blank, the cmdlet doesn't return data.
119120
120-
## NOTES
121121
122-
## RELATED LINKS
122+
123+
## RELATED LINKS
123124
124125
[Online Version](https://technet.microsoft.com/library/6a8b067b-a070-4c82-80c3-95b267a734c1.aspx)

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,18 @@ Connect-PnPOnline -Url <String>
242242
## DESCRIPTION
243243
If no credentials have been specified, and the CurrentCredentials parameter has not been specified, you will be prompted for credentials.
244244

245-
*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:
245+
*For SharePoint Online*: If legacy authentication protocols have been disabled the connection attempt will fail with a message such as the following or when using the default options, which prompts for a username and password within the shell:
246246

247247
>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.
248248
249-
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.
249+
You can determine whether the SharePoint Online Tenant has disabled legacy authentication methods by running the following powershell snippet
250+
`
251+
(Get-PnPTenant).LegacyAuthProtocolsEnabled
252+
`
253+
and if this returns False, then legacy authentication methods have been disabled on the tenant that you are connecting to.
254+
255+
This will then instead mean that you need to ensure that you specify the appropriate options that support modern authentication, such as connections with the "-UseWebLogin" or "-PnPO365ManagementShell" parameters or certificate based authentication.
256+
250257

251258
## EXAMPLES
252259

0 commit comments

Comments
 (0)