Managing Windows Services - Delete/Add

 First things first, lets delete cause that's super easy and before I delete anything I make sure to create backups. What I'm looking to do is expand a system like topshelf where it can just manage it remotely for me but using devops can be tricky.

//delete command
sc.exe delete <service name>
or Ps way
Remove-Service -Name "TestService"

Note: curious about the registry but its better to use sc.exe.


sc create asperacentral 
binPath= "C:\Program Files\Aspera\Enterprise Server\bin\Debug\asperacentral.exe" 
DisplayName= "Aspera Central" 
start= auto


When it comes to publishing a service, it is a bit more difficult what I would like to have is something 
similar to "Oneclick publish" but that would require a visual studio plugin to add the feature and than 
service installed to capture the files to install. Well for now its a pipe dream...

Popular posts from this blog

Installing Windows on Acer chromebook 15 cb3-532

Entity Framework: ToListAynsc & WhereAsync

CSharp Cheatsheet