Skip to content

Commit 5e395a7

Browse files
authored
Merge pull request MicrosoftDocs#858 from tseward/patch-492
Update Remove-SPEnterpriseSearchCrawlLogReadPermission.md
2 parents 0202e5e + b72db5c commit 5e395a7

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPEnterpriseSearchCrawlLogReadPermission.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ For permissions and the most current information about Windows PowerShell for Sh
3232

3333
### ------------------EXAMPLE------------------
3434
```
35-
C:\PS>$ssa = Get-SPEnterpriseSearchServiceApplication
36-
$crawlLogPermission = Get-SPEnterpriseSearchCrawlLogReadPermission -SearchApplication $ssa -Tenant "00000000-0000-0000-0000-000000000001"
37-
Remove-SPEnterpriseSearchCrawlLogReadPermission -Identity $crawlLogPermission -UserNames "contoso\user1;contoso\user2"
35+
PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
36+
PS C:\>$crawlLogPermission = Get-SPEnterpriseSearchCrawlLogReadPermission -SearchApplication $ssa -Tenant "00000000-0000-0000-0000-000000000001"
37+
PS C:\>Remove-SPEnterpriseSearchCrawlLogReadPermission -Identity $crawlLogPermission -UserNames "contoso\user1;contoso\user2"
3838
```
3939

4040
This example removes user1 and user2 from the list of users referenced by $crawlLogPermission.
@@ -44,13 +44,9 @@ $crawlLogPermission is the list of users who have permission to view the crawl l
4444
## PARAMETERS
4545

4646
### -AssignmentCollection
47-
Manages objects for the purpose of proper disposal.
48-
Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management.
49-
Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory.
50-
When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
47+
Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
5148

52-
When the Global parameter is used, all objects are contained in the global store.
53-
If objects are not immediately used, or disposed of by using the `Stop-SPAssignment` command, an out-of-memory scenario can occur.
49+
When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.
5450

5551
```yaml
5652
Type: SPAssignmentCollection

0 commit comments

Comments
 (0)