Skip to content

Simple worker to know how to manage this type of app

Notifications You must be signed in to change notification settings

KaueReinbold/simple-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Worker

Simple worker to know how to manage this type of app

  1. Execute the script Create-User.ps1, to create the User;
  2. Log on as a service rights
    1. Open the Local Security Policy editor by running secpol.msc.
    2. Expand the Local Policies node and select User Rights Assignment.
    3. Open the Log on as a service policy.
    4. Select Add User or Group.
    5. Provide the object name (user account) using either of the following approaches:
      1. Type the user account ({DOMAIN OR COMPUTER NAME\USER}) in the object name field and select OK to add the user to the policy.
      2. Select Advanced. Select Find Now. Select the user account from the list. Select OK. Select OK again to add the user to the policy.
    6. Select OK or Apply to accept the changes.
  3. Execute the script Install.ps1, to install the service into the machine.
    1. Parameters:
      1. Path - Where the files are;
      2. ExeFileName - The name from the .exe;
      3. UserName - The user that will execute the service;
      4. Password - Secure string containing the password for the user (SecureString docs);

        ConvertTo-SecureString "{password_here}" -AsPlainText -Force

      5. Name - The service name;
      6. DisplayName (Optional) - A friendly name for the service;
      7. Description (Optional) - Explain what is the purpose of the service;

For further information check the Microsoft Documentation.

About

Simple worker to know how to manage this type of app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published