File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
sharepoint/sharepoint-ps/sharepoint-server Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,22 +29,22 @@ For permissions and the most current information about Windows PowerShell for Sh
29
29
30
30
### ------------------EXAMPLE 1------------------
31
31
```
32
- C:\PS >$ssa = Get-SPEnterpriseSearchServiceApplication
33
- $topology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Identity 10fa59cb-4b32-4fe6-8f8d-065388df201e
34
- Set-SPEnterpriseSearchTopology -Identity $topology
32
+ PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
33
+ PS C:\> $topology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Identity 10fa59cb-4b32-4fe6-8f8d-065388df201e
34
+ PS C:\> Set-SPEnterpriseSearchTopology -Identity $topology -SearchApplication $ssa
35
35
```
36
36
37
37
This example enables a search topology with the Identity 10fa59cb-4b32-4fe6-8f8d-065388df201e.
38
38
39
39
40
40
### ------------------EXAMPLE 2------------------
41
41
```
42
- C:\PS>$ssa = Get-SPEnterpriseSearchServiceApplication
43
- Set-SPEnterpriseSearchTopology -Identity $topo -SearchApplication $ssa
42
+ PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
43
+ PS C:\>$topology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa | ?{$_.State -eq 'Inactive'}
44
+ PS C:\>Set-SPEnterpriseSearchTopology -Identity $topology -SearchApplication $ssa
44
45
```
45
46
46
- This example enables the search topology referenced by $topo in the search service application referenced by $ssa.
47
-
47
+ This example retreives an inactive topology and sets it to the active topology.
48
48
49
49
## PARAMETERS
50
50
You can’t perform that action at this time.
0 commit comments