Skip to content

This dotnet core windows service will run your PowerShell script as a windows service.

License

Notifications You must be signed in to change notification settings

the-zack-stack/PowerShell-as-a-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Shell Service is a Windows Service that can be easily configured to run any powershell script as a service.

Getting Started

  1. Copy your powershell script to the /Deploy/Shell Service/SupportedFiles directory

  2. Make sure /Deploy/Shell Service/appsettings.json has the desired ServiceName, and WorkerSettings. The WorkerSettings should just be the script name and any of it's arguments.

  3. Run the command line as administrator

    a. To install your service, run install.cmd

    b. To uninstall your service, run uninstall.cmd

Build and Deploy

I deploy it locally using the LocalRelease publish profile. That means you can copy and paste the directory Deploy\Shell Service on any machine to have an entirely portable, easily installable windows powershell service.

About

This dotnet core windows service will run your PowerShell script as a windows service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published