From a0c81f79a74b78194277484659bde6d8af1400e3 Mon Sep 17 00:00:00 2001 From: narutards Date: Fri, 21 Aug 2015 10:56:21 +0200 Subject: [PATCH] Update disable-services.ps1 not only disabling the services but also stopping them --- scripts/disable-services.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }