Skip to content

Commit 9221141

Browse files
authored
Merge pull request MicrosoftDocs#5674 from get-itips/patch-195
Corrected examples
2 parents 918e6c0 + 19ce7d4 commit 9221141

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

sharepoint/sharepoint-ps/sharepoint-server/New-SPClaimProvider.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,10 @@ For permissions and the most current information about Windows PowerShell for Sh
3434

3535
### ------------------EXAMPLE 1------------------
3636
```
37-
New-SPClaimProvider -Name "MyClaimProvider" -Type "MyClaimProvider.Providers.CustomProvider" -AllWebApplications
37+
New-SPClaimProvider -Name "MyClaimProvider" -Type "MyClaimProvider.Providers.CustomProvider" -Default
3838
```
3939

40-
This example registers a claim provider in the farm.
41-
42-
### ------------------EXAMPLE 2------------------
43-
```
44-
New-SPClaimProvider -Name "MyClaimProvider" -Type "MyClaimProvider.Providers.CustomProvider" -Scope (Get-SPWebApplication https://test)
45-
```
46-
47-
This example registers a claim provider scoped to a given Web application.
40+
This example registers a claim provider to all Web applications and zones.
4841

4942
## PARAMETERS
5043

0 commit comments

Comments
 (0)