Skip to content

Commit 70723c3

Browse files
authored
Update Set-SPServer.md
1 parent 4de2f73 commit 70723c3

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Set-SPServer.md

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

1010
## SYNOPSIS
11-
{{Fill in the Synopsis}}
11+
Changes the role of the server.
1212

1313

1414
## SYNTAX
@@ -19,23 +19,25 @@ Set-SPServer [-Identity] <SPServerPipeBind> [-AssignmentCollection <SPAssignment
1919
```
2020

2121
## DESCRIPTION
22-
{{Fill in the Description}}
22+
The Set-SPServer cmdlet changes the role of the server in the farm by using the Role parameter. A new cmdlet in SharePoint Server 2016 that is used in MinRole.
2323

2424

2525
## EXAMPLES
2626

2727
### --------------------EXAMPLE---------------------
2828
```
29-
PS C:\> {{ Add example code here }}
29+
Set-SPServer -Role SingleServerFarm
3030
```
3131

32-
{{ Add example description here }}
32+
This example changes the server to SingleServerFarm role.
3333

3434

3535
## PARAMETERS
3636

3737
### -AssignmentCollection
38-
{{Fill AssignmentCollection Description}}
38+
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.
39+
40+
**NOTE**: 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.
3941

4042
```yaml
4143
Type: SPAssignmentCollection
@@ -51,7 +53,7 @@ Accept wildcard characters: False
5153
```
5254
5355
### -Identity
54-
{{Fill Identity Description}}
56+
Specifies the name of the server in the farm.
5557
5658
```yaml
5759
Type: SPServerPipeBind
@@ -67,7 +69,19 @@ Accept wildcard characters: False
6769
```
6870
6971
### -Role
70-
{{Fill Role Description}}
72+
Specifies the name of the server role you want to change.
73+
74+
The valid values are:
75+
76+
* WebFrontEnd
77+
* Application
78+
* SingleServerFarm
79+
* Distributed Cache
80+
* Search
81+
* Custom
82+
* ApplicationWithSearch
83+
* WebFrontEndWithDistributedCache
84+
7185
7286
```yaml
7387
Type: SPServerRole
@@ -84,7 +98,7 @@ Accept wildcard characters: False
8498
```
8599
86100
### -Status
87-
{{Fill Status Description}}
101+
Sets the status of the server in the farm.
88102
89103
```yaml
90104
Type: SPObjectStatus

0 commit comments

Comments
 (0)