Skip to content

jhyderjhyder/PowershellStopWindowsService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StopWindowsService

Example of how we can start/stop windows service like we do in Azure Dev Ops. To run this it must be self-hosted

on: [push]

jobs:
  Deploy:
    runs-on: [self-hosted, windows]
    name: Deploy Kerberos Servers
    steps:
      - name: Stop Windows Service
        uses: jhyderjhyder/[email protected]
        with:
          WINDOWSSERVICE_NAME: 'tomcat*'
          SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
          SERVICE_PASSWORD: ${{ secrets.SERVICE_PASSWORD }}
          SERVER_NAMES: 'myServer10,myServer12'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published