PeterKottas / DotNetCore.WindowsService

Simple library that allows one to host dot net core application as windows services. Perfect solution to power micro-services architecture.
MIT License
568 stars 150 forks source link

Install a service for specific user #87

Closed mferraricloudsurfers closed 6 years ago

mferraricloudsurfers commented 6 years ago

Run the service with username:YOUR_USERNAME, password:YOUR_PASSWORD and action:install which installs it for the given account.

I tried it but id won't work. How to properly invoke from command line the install service for a specific user with password? Can you post an example please?

I tried this command but it doesn't work: MyExe.exe action:install username:"XXX YYY" password:"ZZZ RRR"

mferraricloudsurfers commented 6 years ago

FIXED: Found the problem! username parameter needs to be username:".\XXX YYY"