not only disabling the services but also stopping them
@ -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
}