Running uTorrent as a Service on Windows Home Server 2011

Step 1: Download and Install uTorrent

  • Download uTorrent 2.2.1 (390 KB)
  • Install uTorrent as normal, by opening the downloaded EXE
  • It should install itself into C:\Program Files (x86)\uTorrent

Step 2: Configure uTorrent Web UI

  • Run uTorrent as normal (e.g. Start Menu)
  • Go to Options menu and select Preferences
  • Go to the Directories folder and set the folders where you want your torrents to be stored
    • Make a note of these directories, as you will need them in step 8

image

  • Go to the Web UI section and make three changes
    • Tick “Enable Web UI”
    • Set a username and password
    • Tick “Alternative Listening Port”; leave the number as 8080
      • Note: This sub-step is not strictly necessary but gives you a higher chance of things working first time

image

Step 3: Test uTorrent Web UI

  • Using a different computer on the local network ensure you can get to the uTorrent Web UI
  • The web address should of the form http://homeserver:8080/gui/
  • Note: You must replace homeserver in the above URL with the name of the computer where you install uTorrent.
  • The browser should ask for a username and password. Use the values provided in Step 2
  • You should see the uTorrent Web UI.
  • If you do not see the uTorrent Web UI do not proceed any further. You have a networking problem. Seek help.
  • At this stage you have a working uTorrent Web UI but it is NOT running as a service. This means that torrents can still only be downloaded when a user is logged on and running uTorrent. Continue with the following steps to run it as a service…
  • Important: Now Close down uTorrent by choosing File->Exit.

Step 4: Copy the uTorrent settings file

  • Copy the settings.dat file from C:\Users\<User>\AppData\Roaming\uTorrent to C:\Program Files (x86)\uTorrent

Note: Depending on your username you will need to substitute <User> in the above path

Step 5: Download and Install SRVANY.exe

  • Download Windows Server 2003 Resource Kit Tools (11.8 MB).
  • Install the entire tool suite as normal, by opening the downloaded exe.
  • By default srvany.exe will be installed to C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe

Step 6: Create Windows Service for uTorrent

  • Open an administrative command prompt by following these steps:
    • Navigate to Start Menu –> Accessories –> Command Prompt
    • Right click and select “Run as Administrator”
  • At the command prompt enter the following:
    sc create uTorrent binPath= "C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe" obj= "NT AUTHORITY\LocalService" start= auto
  • Note: Do not remove the spaces between the equals sign and parameters. This is an oddity of sc command and is required
  • If this works you should see something like the screenshot below:

image

If you get the “Access is denied” error then you are not running as administrator.

Step 7: Configure the SRVANY.EXE service

  • If you want to perform this step manually you will need to know about regedit. Here are the steps:
  • Run regedit
    • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\uTorrent\Parameters
    • Create the Parameters key if it does not exist
    • Under the Parameters Key, add a new String Value named Application
    • Set the value to be C:\Program Files (x86)\uTorrent\uTorrent.exe
    • If you have done everything correctly it should look like the screenshot below:

image

Step 8: Modify permissions on your downloads directory

By default Windows will not allow your uTorrent service to read or write to the disk. In order for uTorrent to work you need to add read & write permissions on the directory or directories you specified in Step 2.

  • Navigate to the directory
  • View the directory properties
  • Select the Security tab
  • Click the Edit… button
  • Click the Add… button
  • Enter LOCAL SERVICE (including the space) then click OK
  • Ensure “Allow Modify” is ticked, and OK everything
  • It should look something like the screeshot below:

image

Step 9: Ensure the uTorrent service is running

  • Load the services control panel (Start->Run->Services.msc)
  • Locate the service named uTorrent and verify the Status column says “Started”.
  • If it does not say “Started”, then click the Start Service button

Finally…

  • Log off your Windows session and repeat Step 3 to verify that the web UI is still working and you can download torrents successfully.

General trouble shooting:

  • Double check that uTorrent.exe is not running on your desktop.
    • Note: By default clicking the close button in top right of the uTorrent window will not actually exit the application
  • Double check that uTorrent.exe is running as a service.
    • In task manager, “Show processes from all users”, ensure you can see uTorrent.exe running with LOCAL SERVICE displaying in the User Name column
  • Please leave a comment if you have any issues with this guide

58 thoughts on “Running uTorrent as a Service on Windows Home Server 2011

  1. Pingback: Installing uTorrent on Windows Home Server 2011 |

  2. JazJon

    Task Schedule works great in WHS 2011 (free an simple)

    Server Manager (near start menu)
    -Drill down to, Configuration, Task Scheduler
    -click Create Task. (not the Basic one)
    -Give it name, click Run whether user is logged in or not, configure for Windows 7, 2008

    Triggers Tab
    -New, (drop down menu) Begin the task at startup, click ok

    Actions Tab
    -New, Start a program, Browse (to .exe) click ok

    Conditions Tab
    -Uncheck the box that says to Stop the task if ran for 3 days. (so it runs forever)

    Back to General Tab
    -Click ok and it will prompt for Administrator password

    Click Task Scheduler Library (underneath Task Scheduler in Server Manager from step 1)

    Run it ! (should work when you reboot too) I see my program running in task manager, so far so good!)

  3. Infrabasse

    Hi,

    Thanks for putting together this guide in such a comprehensible way :)

    However I’m still having trouble with step 6
    I’m getting the exact same result as if I only typed:
    sc create
    It doesn’t tell me:
    [SC] CreateService SUCCESS

    Any idea why I’m getting this?
    All previous steps worked just fine.

  4. Jack Post author

    Sounds like it is not recognising the command line parameters. Most likely cause would be removing the spaces between the equals sign and parameters (see note in article). Try copying and pasting directly from this blog post.

  5. Infrabasse

    Thanks for the fast reply. That’s what I had done though. Tried again, I get the same :(
    Maybe I’ll try the technique involving a dedicated user converted to a service.

  6. Danb

    It’s to do with the quotations in that code snippet. They’ve allowed slanted speechmarks. If you copy and paste the code, and then re-type the quotation marks, it works.

  7. Paul

    When i try to start the utorrent service, i get a popup dialog saying “The utorrent service on local computer started and then stopped. some services stop automatically if they are not in use by other services or programs.

    any ideas would be great thanks

  8. Jack Post author

    Yes the fix is to make sure regular quotation marks are being used not the fancy left/right quotation marks

  9. Niklas

    The only way i get the webUI to work is if I am loged in by remote desktop to the server. If i close the remote desktop the webUI stops.

    I also get the same problem as Paul and I dont relly understand Jack´s answer. What is wrong?

  10. Jack Post author

    @Niklas, This is because you are running uTorrent as a desktop application, not as a service. When you logoff via remote desktop it will kill all applications that are running. Services keep running even if nobody is logged in. Read step 3 carefully and try again?

  11. Jan

    Great tutorial, very detailed. However, I do have the same problem as Paul; “Some services stop automatically if they are not in use by other services or programs”

    I’m starting to think this has something to do with security settings and permissions, but I’m not sure. Any response to this problem would be very appreciated. I’m running 2008 R2.

  12. Steve

    I’m trying to do this on my PC and I’ve got the service running, which is great. The problem I’m running into is once the service starts, it doesn’t start downloading, and the RAM utilization is HALF of what it is when the GUI is running. I can load the GUI and instantly IT’S ALIIIIIIIVE!… but when the service is active, not so much.

    Any ideas?

  13. Steve

    And I’m an idiot. The user log on was Local Service. Changed it to my actual user name/password and we’re in business.

    Thanks!

  14. Dave

    I have the service running and everything but when I attempt to add a file to the web interface nothing happens. I click add>browser> I get to the file and click OK then nothing.

  15. japipoju

    Has anyone had any luck making this work with uTorrent v3, cause I’ve tried it but it doesn’t add any torrent files via web ui.

  16. Mike

    I followed the instructions exactly (except was also using uTorrent 3.0). I had the same issues as #17 (i.e., the service would run, but I couldn’t log in using the uTorrent 3.0 version of WebUI, and it wouldn’t load a torrent when I dropped it in the autoload folder). I switched the uTorrent service login from LOCAL SERVICE to ADMINISTRATOR (which I’ll now go back and create a new user account for, so I can avoid using ADMINISTRATOR) and it worked like a charm.

  17. MickEE

    Hello!
    I have been trying to install uTorrent on my Whs 2011 many times now and I´m always getting the same error “The µTorrent WebUI does not seem to be installed. Click here to try to install it, or see the guide for more details.”

    I have tried to uninstall/reinstall like above a couple of times but without result. I can see that uTorrent running in service’s but still not working.
    The gui works, via http://YourIP:UTport/gui/, before i start trying to make uTorrent to run as a service. I was then logged onto whs with uTorren running.
    Can someone plz help me!

  18. Sam

    I havent managed to set up my WHS 2011 box yet but when I do this will be one of the first things I do, great tutorial.

    My question is whether you can access the WebUI remotely, outside of the network, for instance at work 😉

  19. Jamie

    Guys that posted for #17, #18 and #19, I had the same problem as you.

    Finally resolved it today by navigating to C:\Program Files (x86)\uTorrent and then running through Step 8 above and enabling permission for LOCAL SERVICE to modify the folder (I think this way the torrent can now be stored in the C:\Program Files (x86)\uTorrent folder, whereas before it was being denied permission).

    Hope this helps.

    Regards,

    Jamie

  20. Jamie Lamb

    For those of you above that are having problems adding torrents, the fix is to repeat step 8 above for the folder C:\Program Files (x86)\uTorrent

    When you add a torrent it wants to store it in this folder, but you haven’t given the service permission for it to store it there. Give the folder the correct permissions and you’ll be good to go.

    Cheers,

    Jamie

  21. James

    Excellent tutorial for a WHS noob (me).

    I make it all the way to STEP 9. When I attempt to start the service I get the following error:

    “Windows could not start the uTorrent service on Local Computer.

    Error 2: The system cannot find the file specified.”

    I’ve rechecked the spelling and believe I have everything in order. Any ideas?

  22. James

    Edit: Okay, it looks like I added an unwanted space in STEP 6. So, I deleted the service, then recreated it using correct verbiage and now get the exact problem as #8, #9, #14, etc. “The utorrent service on local computer started and then stopped. some services stop automatically if they are not in use by other services or programs.”
    I typed this in manually (I still don’t know how to control the WHS from a client PC or if it is possible), so I don’t know how I could have left or right quotes. So, any ideas?

    Thank you!

  23. James

    So, I got it. I deleted the service again, and did the guide verbatim from start to finish and it has worked for about a week now. Great guide, and my problems were essentially due to typos and not re-doing all the steps after I re-did step 6. Thank you, even if this never goes on your page, I appreciate your guide!

  24. Olivier

    Hello,
    I have utorrent 3.1, and the same error message as MickEE (#21): “The µTorrent WebUI does not seem to be installed. Click here to try to install it, or see the guide for more details.”

    The solution was easy for me: I just have to uncompress webui.zip in C:\Program Files (x86)\uTorrent.

    Regards,

    Olivier

  25. terodeg

    there is a way to make utorrent remote service run in utorrent running as a service mode? i can start the service utorrent as srvany.exe but then utorrent remote not working and also webUI not working.

  26. Judson

    For people having the error “webui not being installed” I just needed to run webui once from my server .. I then closed out, logged off and I could then access webui from remote pc’s.

  27. Chris

    First, thanks for this. I was setting this up on an htpc where I have one user who’s always on (for the front end), and a secondary user account I use for actual desktop use through a rdp session. I wanted to be able to manage utorrent through this secondary account, but didn’t want to have to leave it logged on. So a service was definitely what I was looking for.

    Now, my only issue I had, was that apparently LOCAL SERVICE didn’t have the necessary permissions to the uTorrent folder in Program Files. After, assigning this (the same as the downloads directory) and restarting the service, the webui interface loaded just fine.

    Thanks again!

  28. Kay

    worked well, except one thing,… requires to copy EVERYTHING from C:\Users\\AppData\Roaming\uTorrent … not only the seetings.dat. secondly you need the uTorrent folder in C:\Program Files (x86)\ more rights for “Local Service”.
    As I’m totaly lazy tonight I gave him all 😉

    Now it seems to work perfectly well, thanks for the hints in this post…

  29. Robert

    Thanks.

    Just installed utorrent as a service with this guide on a Windows Server 2012 Beta and it worked, i just had to add some permissions on the application folder “c:\program files(x86)\utorrent”.

    /Robert

  30. iain

    I made it all the way through Step 9 with no issues and but when I logged off and back on the service wouldn’t start.

    I get the error “error 1068: the dependency service or group failed to start” when I try to start it manually.

    As others have suggested I have switched from the “Local Service” account to an account that I already had on the machine that I’ve used previously to install applications as an administrator (not the admin account) but still no dice.

  31. iain

    I re-built the service and now I’m getting a message:

    “The uTorrent service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service”.

    Any ideas?

  32. iain

    Oops- when I deleted the service the Parameter key was removed from the registry. Adding that fixed it and now I’m working. Thanks!

  33. serratedauto

    @ Posts #33 and 34,

    THANKS! I installed everything according to the instructions, but when I tried to download stuff it was having trouble initiating the download, and even when I restarted it wouldn’t remember the old torrents. The issue was that uTorrent folder in the Program Files (x86) dir didn’t have the local services permission.

    THANKS!!!!

  34. pablo

    In step8 I click the Edit, then I click the Add and when I enter LOCAL SERVICE and click OK I see “Name not found” “Can not find an object named LOCAL SERVICE…”. I’ve got Win7 pro 64bit. Any suggestion? Thanks

  35. LeptonAV

    Thanks for the guide. It is really interesting.

    I have tried this morning all the steps, and it seems it works. The only problem I have found is the following: If the WHS restarts, for any reason, all the downloads I had on the go dissappear and I don’t have any idea how to recover them.

    I did this in my old WHS 2003 with no problems. Any ideas?

  36. The White Tyger

    Very well written guide. I have followed all the steps as described, however no matter if I stop the utorrent service and run it as a local desktop program or as a service, anytime I try to log into utorrent via web GUI, it only tells me “invalid request”. I have poke appropriate hole into the firewall as well as port forwarding in the router. Any other suggestions that may prove useful?

    UPDATE:Just checked outbound rules in windows firewall in WHS2011, no outbound rule was made, now has been created, going to restart server with fingers crossed!

  37. Sabrina Y. Roth

    Just installed it using rdp into the MSS. There was no magic, I downloaded the lastest level and did the install. Everything went fine, then used microsoft tool to make it a service.Edit: Here’s a link that will give you some idea http://jack.ukleja.com/utorrent-service … rver-2011/ but there are other links as well. I used this one as a basic guide but did install 3.0 of the torrent program. Use google, you can find out how to do anything.

  38. Angus Black

    Thanks for the instructions.
    I set it up on Windows Home Server 2011.
    uTorrent will start and enable the WebUI but it does not pick up RSS feeds.

  39. Chad

    I skipped step #4 and had it run as my network user, so that the service inherits my user’s file permissions over the network to my network share. In the uTorrent service key I have the ObjectName string set as “.\username”; and under the Parameters subkey I have Application string set as C:\Users\username\AppData\Roaming\uTorrent\uTorrent.exe. Then I go to the services menu and set the service to login as “.\username” (this should already be set) and put in that user’s password in the password fields. Now uTorrent has the correct network file permissions! Even better from a security standpoint, create a utorrent user and have the service run as that, and setup a seperate user profile on your network share.

  40. Bradley

    Hi,

    I have successfully completed all of the steps however, when I go to use the web access the login pops ups and says “400: Client is not connected”. When I have gone to look at the service it says “stopped”, whenever I go to start the service it says “the service started and then stopped again. Some programs do this if they are not active”. Any Suggestions?

    Help would be much appreciated

    Thanks,

    Bradley

  41. Alan Jebakumar

    Hey Jack,

    All the setup as suggested has been completed, but the web-gui is not working as expected. I get the below error after the service has been started-

    http://wpc01:8080/gui – The µTorrent WebUI does not seem to be installed. Click here to try to install it, or see the guide for more details.

    Do advise..

    -Alan.

  42. Pingback: How To Fix Utorrent Error Permission Denied in Windows

  43. Pingback: How To Fix Utorrent Setup Guide Error in Windows

  44. Pingback: How To Fix Utorrent Error The Parameter Is Incorrect in Windows

  45. Matthew Heaney

    I just installed uTorrent, but it puts the binary in

    “C:\Users\Administrator\AppData\Roaming\uTorrent\uTorrent.exe”

    Shouldn’t the Application regkey have that value? The instructions in step #7 point to a binary under Program Files (x86), but there is no such binary there.

Leave a Reply

Your email address will not be published. Required fields are marked *