diff --git a/scripts/disable-services.ps1 b/scripts/disable-services.ps1 index 7a2d9d3..3f0a730 100644 --- a/scripts/disable-services.ps1 +++ b/scripts/disable-services.ps1 @@ -28,5 +28,5 @@ $services = @( ) foreach ($service in $services) { - Get-Service -Name $service | Set-Service -StartupType Disabled + Get-Service -Name $service | Stop-Service -PassThru | Set-Service -StartupType Disabled }