File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
sharepoint/sharepoint-ps/sharepoint-server Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,10 @@ For permissions and the most current information about Windows PowerShell for Sh
29
29
30
30
### --------------------EXAMPLE---------------------
31
31
```
32
- C:\PS>$web=Get-SPWebApplication -Identity <URL of web application>
33
-
34
- C:\PS>$rm=Get-SPRequestManagementSettings -Identity $web
35
-
36
- C:\PS>$m=Get-SPRoutingMachineInfo -RequestManagementSettings $rm -Name <MachineName>
37
-
38
- C:\PS>Set-SPRoutingMachineInfo -Identity $m -Availability Unavailable
32
+ PS C:\>$wa = Get-SPWebApplication -Identity http://webAppUrl
33
+ PS C:\>$rm = Get-SPRequestManagementSettings -Identity $wa
34
+ PS C:\>$m = Get-SPRoutingMachineInfo -RequestManagementSettings $rm -Name SP01
35
+ PS C:\>Set-SPRoutingMachineInfo -Identity $m -Availability Unavailable
39
36
```
40
37
41
38
This example sets the "Availability" routing target property to Unavailable for a specified identity.
You can’t perform that action at this time.
0 commit comments