List Services
get-service
Stop Service
stop-service <SERVICENAME>
Start Service
start-service <SERVICENAME>
Change start-up type
set-service <SERVICENAME> -StartupType Automatic|Disabled
Stop multiple services at once
get-service | where name -like <SERVICENAME>* | stop-service
https://docs.microsoft.com/en-us/powershell/scripting/samples/managing-services?view=powershell-7
No comments:
Post a Comment