Skip to content

Commit cdc85d9

Browse files
authored
Merge pull request MicrosoftDocs#646 from tseward/patch-333
Update Set-SPRoutingMachineInfo.md
2 parents 9261f01 + f5ef03f commit cdc85d9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ For permissions and the most current information about Windows PowerShell for Sh
2929

3030
### --------------------EXAMPLE---------------------
3131
```
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
3936
```
4037

4138
This example sets the "Availability" routing target property to Unavailable for a specified identity.

0 commit comments

Comments
 (0)