Browse Source

Update disable-services.ps1

not only disabling the services but also stopping them
pull/25/head
narutards 9 years ago
parent
commit
a0c81f79a7
  1. 2
      scripts/disable-services.ps1

2
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
}

Loading…
Cancel
Save