Set-Service

Starts, stops, and suspends a service, and changes its properties. This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service.

Set-Service -Name hostname -DisplayName "name"

Set-Service -Name service_name -StartupType Automatic

Set-Service -Name service_name -Description "description"