Skip to content

Commit

Permalink
Reset-DbaAdmin: Fix parameter name (#9435)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Aug 4, 2024
1 parent a6634cc commit f48273a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/Reset-DbaAdmin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ function Reset-DbaAdmin {
}
} catch {
Stop-Service -InputObject $sqlservice -Force -ErrorAction SilentlyContinue

if ($isClustered) {
$clusterResource | Where-Object Name -EQ "SQL Server" | ForEach-Object { $_.BringOnline(60) }
$clusterResource | Where-Object Name -NE "SQL Server" | ForEach-Object { $_.BringOnline(60) }
Expand All @@ -332,7 +331,7 @@ function Reset-DbaAdmin {
Start-Sleep 3
$null = Invoke-ResetSqlCmd -instance $instance -Sql "SELECT 1" -EnableException
} catch {
Stop-Service Input-Object $sqlservice -Force -ErrorAction SilentlyContinue
Stop-Service -InputObject $sqlservice -Force -ErrorAction SilentlyContinue
if ($isClustered) {
$clusterResource | Where-Object { $_.Name -eq "SQL Server" } | ForEach-Object { $_.BringOnline(60) }
$clusterResource | Where-Object { $_.Name -ne "SQL Server" } | ForEach-Object { $_.BringOnline(60) }
Expand Down

0 comments on commit f48273a

Please sign in to comment.