2727 . PARAMETER Enu
2828 See the notes section for more information.
2929
30- . PARAMETER Features
31- See the notes section for more information.
32-
3330 . PARAMETER PBEngSvcAccount
3431 See the notes section for more information.
3532
5552 None.
5653
5754 . EXAMPLE
58- Repair-SqlDscServer -InstanceName 'MyInstance' -Features 'SQLENGINE' - MediaPath 'E:\'
55+ Repair-SqlDscServer -InstanceName 'MyInstance' -MediaPath 'E:\'
5956
60- Repairs the database engine of the instance 'MyInstance'.
57+ Repairs all installed features of the instance 'MyInstance'.
6158
6259 . NOTES
6360 The parameters are intentionally not described since it would take a lot
6461 of effort to keep them up to date. Instead there is a link that points to
6562 the SQL Server command line setup documentation which will stay relevant.
63+
64+ SQL Server Repair action does not accept the FEATURES parameter. Although
65+ Microsoft's documentation lists /FEATURES as required for the Repair action,
66+ the actual SQL Server setup executable (tested with SQL Server 2017 and
67+ SQL Server 2022) rejects this parameter with the error: "The setting
68+ 'FEATURES' is not allowed when the value of setting 'ACTION' is 'Repair'."
69+ SQL Server automatically repairs all installed features during a repair
70+ operation.
6671#>
6772function Repair-SqlDscServer
6873{
@@ -84,44 +89,6 @@ function Repair-SqlDscServer
8489 [System.Management.Automation.SwitchParameter ]
8590 $Enu ,
8691
87- [Parameter (Mandatory = $true )]
88- [ValidateSet (
89- ' SQL' ,
90- ' SQLEngine' , # Part of parent feature SQL
91- ' Replication' , # Part of parent feature SQL
92- ' FullText' , # Part of parent feature SQL
93- ' DQ' , # Part of parent feature SQL
94- ' PolyBase' , # Part of parent feature SQL
95- ' PolyBaseCore' , # Part of parent feature SQL
96- ' PolyBaseJava' , # Part of parent feature SQL
97- ' AdvancedAnalytics' , # Part of parent feature SQL
98- ' SQL_INST_MR' , # Part of parent feature SQL
99- ' SQL_INST_MPY' , # Part of parent feature SQL
100- ' SQL_INST_JAVA' , # Part of parent feature SQL
101- ' AS' ,
102- ' RS' ,
103- ' RS_SHP' ,
104- ' RS_SHPWFE' , # cspell: disable-line
105- ' DQC' ,
106- ' IS' ,
107- ' IS_Master' , # Part of parent feature IS
108- ' IS_Worker' , # Part of parent feature IS
109- ' MDS' ,
110- ' SQL_SHARED_MPY' ,
111- ' SQL_SHARED_MR' ,
112- ' Tools' ,
113- ' BC' , # Part of parent feature Tools
114- ' Conn' , # Part of parent feature Tools
115- ' DREPLAY_CTLR' , # Part of parent feature Tools (cspell: disable-line)
116- ' DREPLAY_CLT' , # Part of parent feature Tools (cspell: disable-line)
117- ' SNAC_SDK' , # Part of parent feature Tools (cspell: disable-line)
118- ' SDK' , # Part of parent feature Tools
119- ' LocalDB' , # Part of parent feature Tools
120- ' AZUREEXTENSION'
121- )]
122- [System.String []]
123- $Features ,
124-
12592 [Parameter ()]
12693 [System.String ]
12794 $PBEngSvcAccount ,
0 commit comments