Running the Transfer Engine without a User Present

The Transfer Engine is a process, not a service. However, you can execute scripts while the system is not logged in if you properly configure Windows DCOM configuration for the Transfer Engine. Carefully read and follow the steps below. A sample script is provided.

To configure the TE under the DCOM configuration applet

  1. Click Start > Run.

  2. In the Run dialog box, type:

    DCOMCNFG

  3. Click OK. The Windows Component Services dialog box appears.

  4. In the left pane, expand Component Services, expand Computers, expand My Computer, expand DCOM Config, then click TEConnection Class.

  5. Right-click TEConnection Class, then click Properties. The TEConnection Class Properties dialog box appears.

  6. Click the Identity tab.

  7. Under Which user account do you want to use to run this application, click This user, then provide a valid user name and password. It must be the same user as established under your task scheduler's run as property (if applicable), so that the scheduler service can call the COM object as a user. This will enable the Transfer Engine to run with the user settings, and if necessary, access pre-established SSL certificates (for secure connections).

  8. Click OK to save the changes, and close the Properties dialog box.

  9. Close the Component Services dialog box.

Configuration Notes

 

Const EVENT_SUCCESS = 0

Set objShell = Wscript.CreateObject("Wscript.Shell")

objShell.LogEvent EVENT_SUCCESS,"AT Loaded me"

Set MySite= CreateObject("CuteFTPPro.TEConnection")

MySite.Option ("ThrowError") = False

MySite.Host = "ftp://anonymous:user@user.com@ftp.globalscape.com/pub/cuteftp"

objShell.LogEvent EVENT_SUCCESS,"vars set"

MySite.Connect

objShell.LogEvent EVENT_SUCCESS, "connected"

MySite.Download "index.txt", "c:\temp"

objShell.LogEvent EVENT_SUCCESS, "downloaded"

MySite.Disconnect

MySite.Close