Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Restart Win Service
Restart Win Service

Restart Win Service

Chaminda Chandrasekara

|
365 installs
| (2) | Free
Restart given windows service and any other windows service(s), that is currently running and is depending (recursively), on the given windows service.
Get it free

Chamindac.vsts.release.task.restart-win-service

Release task that enable you to restart windows service with all the dependant services.

Restart Win Service

Task requires one mandatory parameter Service Name. For this parameter Service Name or Service Display name can be provided.

Restart Win Service

Once run it will stop all dependent services that are running currently, and restart the main service, then start the dependent services stopped earlier. The dependent services that were not running when the restart request made, will not be started, so that the system services state will remain same after restart service script run.

Restart Win Service

Documentation

Please check the Get started

Known Issues

If release agent is running with user such as NetworService, error could occur.

For example restarting w3svc could fail with "Service 'World Wide Web Publishing Service (w3svc)' cannot be stopped due to the following error: Cannot open w3svc service on computer '.'". )

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft