mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 11:15:48 +02:00

Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
17 lines
577 B
Markdown
17 lines
577 B
Markdown
# Set-Service
|
|
|
|
> Inicia, detiene y suspende un servicio, y cambia sus propiedades.
|
|
> Nota: Este comando solo puede usarse a través de PowerShell.
|
|
> Más información: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service>.
|
|
|
|
- Cambiar el nombre para mostrar:
|
|
|
|
`Set-Service -Name {{hostname}} -DisplayName "{{nombre}}"`
|
|
|
|
- Cambiar el tipo de inicio de servicios:
|
|
|
|
`Set-Service -Name {{service_name}} -StartupType {{Automatic}}`
|
|
|
|
- Cambiar la descripción de un servicio:
|
|
|
|
`Set-Service -Name {{service_name}} -Description "{{descripción}}"`
|