Hi all, I would like to create a script to stop and disable some services with the usual one-liner
Stop-Service $serviceName.Name -StartupType Disabled. The issue is that on some cases i get the error “Service ‘Software Protection (sppsvc)’ cannot be configured due to the following error: Access is denied”.
I made some research but couldn’t solve this. Any help appreciated. This script will be used for automation for a lot of servers so any unified solution would be great.