Run HFS as a Windows Service with AlwaysUp

How to Run HFS (HTTP File Server) as a Windows Service with AlwaysUp

Ensure that HFS starts at boot and runs 24/7 to serve your files all the time — despite crashes, hangs and other interruptions. No need to log on first


Last Updated on May 2, 2026

HFS is a free, easy-to-use web server tuned for sharing files.

To install HFS as a Windows Service with AlwaysUp:

  1. If necessary, download the HFS zip file and extract its contents to a folder on your hard drive. Please make a note of the location as it will be used in a later step.

    We went with "C:\HFS" on our machine:

    HFS installed

    Ensure that you add files and set up HFS to work exactly as you expect. Please confirm that everything is accessible from your browser.

    This is important: If HFS doesn't work now, it won't work as a Windows Service either.

  2. Download and install AlwaysUp, if necessary.

  3. Start AlwaysUp.

  4. Select Application > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the HFS executable. Since we placed HFS in "C:\HFS", we'll enter:

      C:\HFS\hfs.exe
    • In the Start the application dropdown, choose Automatically, but shortly after the computer boots. Doing so instructs AlwaysUp to launch HFS 1-2 minutes after boot — after all critical networking services are up and running.

    • And in the Name field, enter the name that you will call the application in AlwaysUp. We went with HFS but you can specify something else if you like.

    HFS Windows Service: General Settings

  6. We're done configuring HFS so click the Save button. In a couple of seconds, an application called HFS (or whatever you called it) will show up in the AlwaysUp window.

    At this point HFS is installed as a Windows Service. However, it's not yet running and the state will be "Stopped":

    HFS Windows Service: Installed

  7. To start HFS, choose Application > Start "HFS". The state will transition to "Running" and HFS will start serving your files:

    HFS Windows Service: Running

    Note that because of Session 0 isolation, the HFS console window won't come up on your desktop. That's because the web server will be running in the background session where all Windows Services operate.

    If you do wish to see the HFS window, select Application > Restart "HFS" in this session, which will quickly stop HFS and start it again on your desktop.

  8. Now is a great time to confirm that HFS is working. Open your browser and ensure that your files are accessible.

    Everything looked good on our machine:

    HFS Windows Service: Working

    You can also check that hfs.exe is running in Task Manager:

    hfs.exe running as a service in Task Manager

  9. That's it! Next time your computer boots, HFS will start up immediately, before anyone signs in.

    We encourage you to edit HFS in AlwaysUp and check out the many other settings that may be appropriate for your environment.

    For example, you can:


HFS not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and HFS. The AlwaysUp Event Log Messages page explains the more obscure messages.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Our 14,000+ customers include...
AlwaysUp is fully compatible with Windows 11 AlwaysUp is fully compatible with Windows Server 2025
Over 97,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 20+ years!