Skip to content

Commit eb5b522

Browse files
authored
Merge pull request MicrosoftDocs#839 from tseward/patch-473
Update Get-SPService.md
2 parents b54b2c9 + 1fee064 commit eb5b522

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Get-SPService.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-SPService
99

1010
## SYNOPSIS
11-
{{Fill in the Synopsis}}
11+
Gets a service in the farm.
1212

1313
## SYNTAX
1414

@@ -18,21 +18,21 @@ Get-SPService [[-Identity] <SPServicePipeBind>] [-All] [-AssignmentCollection <S
1818
```
1919

2020
## DESCRIPTION
21-
{{Fill in the Description}}
21+
The Get-SPService cmdlet gets a service in the farm.
2222

2323
## EXAMPLES
2424

2525
### Example 1
2626
```
27-
PS C:\> {{ Add example code here }}
27+
PS C:\>Get-SPService -Identity 'Microsoft SharePoint Server Diagnostics Service'
2828
```
2929

30-
{{ Add example description here }}
30+
This example gets the Microsoft SharePoint Server Diagnostics Service in the farm.
3131

3232
## PARAMETERS
3333

3434
### -All
35-
{{Fill All Description}}
35+
Specifies all services in the farm.
3636

3737
```yaml
3838
Type: SwitchParameter
@@ -48,8 +48,9 @@ Accept wildcard characters: False
4848
```
4949
5050
### -AssignmentCollection
51-
{{Fill AssignmentCollection Description}}
51+
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.
5252
53+
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.
5354
```yaml
5455
Type: SPAssignmentCollection
5556
Parameter Sets: (All)
@@ -64,7 +65,7 @@ Accept wildcard characters: False
6465
```
6566
6667
### -Identity
67-
{{Fill Identity Description}}
68+
Specifies the name of the service to get.
6869
6970
```yaml
7071
Type: SPServicePipeBind

0 commit comments

Comments
 (0)