Skip to content

Commit b526260

Browse files
authored
Merge pull request MicrosoftDocs#240 from tseward/patch-19
Update Add-SPPluggableSecurityTrimmer.md
2 parents d9367f4 + 84b4b4d commit b526260

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Add-SPPluggableSecurityTrimmer.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,12 @@ For permissions and the most current information about Windows PowerShell for Sh
2727

2828
### ----------------EXAMPLE 1--------------------
2929
```
30-
C:\PS>$pr = Get-SPServiceApplicationProxy | ? {$_.TypeName.Contains("Profile")}
31-
32-
C:\PS>Add-SPPluggableSecurityTrimmer -UserProfileApplicationProxyId $pr.Id -PlugInId 0
30+
C:\PS>$proxy = Get-SPServiceApplicationProxy | ? {$_.TypeName -eq 'User Profile Service Application Proxy'}
31+
C:\PS>Add-SPPluggableSecurityTrimmer -UserProfileApplicationProxyId $proxy.Id -PlugInId 0
3332
```
3433

3534
This example adds a pluggable security trimmer that is related to the User Profile service application proxy.
3635

37-
38-
### -----------------EXAMPLE 2----------------------
39-
```
40-
C:\PS>$proxy = Get-SPServiceApplicationProxy | ? {$_.TypeName.Contains("Profile")} $proxy.Id
41-
42-
C:\PS>Add-SPPluggableSecurityTrimmer -UserProfileApplicationProxyId $proxy.Id -PlugInId 0
43-
```
44-
45-
This example turns on security trimming in a User Profile Service Application.
46-
4736
## PARAMETERS
4837

4938
### -UserProfileApplicationProxyId

0 commit comments

Comments
 (0)