====== Windows: создаем и удаляем сервис из Powershell ======
Документация:
* https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service
* https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-service
Создаем:
New-Service -Name "MyService" -BinaryPathName "C:\Path\to\myservice.exe"
Удаляем:
Remove-Service -Name "TestService"
Удаляем по DisplayName:
Get-Service -DisplayName "Test Service" | Remove-Service
{{tag>windows service services.msc create remove}}