Powershell to start background service

GOAL: Start MyExe.exe which is a background service for testing purposes

ANSWER:

Start Powershell in Administrator mode. 

Navigate to the desired directory. Then:

    Start-Process -FilePath MyExe.exe 

   sc.exe create "XXXXXService" binpath= C:\XXXXX\bin\Release\net8.0\MyExe  

Comments

Popular posts from this blog

JSON Web Tokens

GHL Email Campaigns

Death of Codeium & Windsurf