Base de connaissances
Créé
Mise à jour
Mise à jour
Setup SmartFTP service
The SmartFTP service is required to run scheduled tasks in the background session (session 0).
To setup the service, a Local Administrator is required and the user under which the service is running requires the Log on as service user right.
Method 1 using SmartFTP UI (recommended)
- Go to the menu: File - Settings
- Go to the Scheduler dialog
- Click on Create SmartFTP Service
- If you see a UAC prompt, enter the username and password of an Administrator account
- In the Create Service dialog, enter the password of the current user account. This is the user the service logs on.
- Click Start to start the service
Method 2 using the Command Line
Only use this method if no user interface is available. E.g. on Windows Server Core.
- Open a Command Prompt (cmd.exe) and Run as administrator.
- Replace user and password.
set USER=user
set PASSWORD=password
sc create SmartFTP_%USER% binPath= "C:\Program Files\SmartFTP Client\SmartFTPService.exe" start= delayed-auto DisplayName= "SmartFTP Service (%USER%)" obj= ".\%USER%" password= "%PASSWORD%"
sc failure SmartFTP_%USER% reset= INFINITE actions= restart/60000
sc description SmartFTP_%USER% "Allows file transfers to be run in the background."
- Start the service
sc start SmartFTP_%USER%
- Optional: Grant the user permissions to query/start/stop the service.
To get the SID of the userwmic useraccount where name="%USER%" get sid
or of the current user:whoami /user
and note the SID - Replace the SID from above and type:
sc sdset SmartFTP_%USER% D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SID)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
Articles connexes
How To run scheduled tasks
How to give a user Log on as a batch job rights
How to grant a user Log on as a service user right
What do you think about this topic? Send feedback!