A small task to stop a Windows Service that is running on the same machine as the VSTS agent that executes this task.
Useful to use when working with Deployment Groups in VSTS.
To run unit tests execute the following powershell command at the test directory:
Invoke-Pester -Script .\tests\InstallWindowsService.Tests.ps1 -CodeCoverage .\InstallWindowsService.ps1
To upload the task to an VSTS account, use the tfx-cli.
tfx login --service-url https://youraccount.visualstudio.com/DefaultCollection
Enter your Personal Access Token.
At the root of repository execute the following command:
tfx build tasks upload --task-path src
Issues and pull-requests are welcome.