set-service

Starts, stops, and suspends a service, and changes its properties.…

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}}"

Также может быть вам интересно:
Windows
← set-date setx →