Stop service before disabling

main
LeDragoX 4 years ago committed by Plínio Larrubia
parent a11592bfcb
commit 4fc1de4774
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -69,6 +69,7 @@ $DisableServices = @(
foreach ($service in $DisableServices) {
Write-Host "Disabling $service at Startup..."
Set-Service -Name $service -Status Stopped
Set-Service -Name $service -StartupType Disabled
}

Loading…
Cancel
Save