How to install uTorrent on your WHS box

First of all, let me say that the credit for this goes to Philip Churchill at mswhs.com. He wrote the original article in July, 2007. It has become a little dated since then, but for the most part is still relevant. I’m just changing some things here to make it work for 2009.

The idea of this article is to run uTorrent on an always-on machine in your house. The WHS is typically on 24/7 so you might as well use that. Then you can schedule uTorrent to only soak up your bandwidth in the wee hours of the morning and not have to worry about having multiple computers on all the time. Once we are done here uTorrent will run on your WHS box without having to have a logged-in user. Read on to find out how this works!

Create the New User

First of all we need to create a new user on the server. This is done for security reasons as we do not want to install uTorrent under the default Administrator account. Once this step is completed you may continue with the following.
Install and Configure

Connect via the Remote Desktop Connection as the user you have just created e.g. “WHS” and your newly created password.

Download the Windows Server 2003 Resource Kit Tools and install rktools.exe using the default options.

Next install the latest version of µTorrent and install using the default options.

If this is the first time you have installed uTorrent on your server then a dialogue will appear asking if you want to associate .torrent files with µTorrent. Click Yes. If a Windows Security Alert pops up asking if you want to Block or Unblock uTorrent Click Unblock and if the Speed Guide appears set your Connection Type and the Current Port that you would like to use.

You will now need to forward the port you selected above into your router. Details of router setup screens can be found at portforward.com (select your router and then uTorrent)

In uTorrent select Options then Preferences. Make sure your General screen matches this one:

general

Make sure that your directories screen matches the one below. You can change the location for your Put new downloads in but do NOT use a server share. It has to be under a drive letter on the WHS otherwise the Drive Extender Migrator Service will cause data corruption errors as it tries to move the file onto another drive while uTorrent is in the middle of writing to it, or just before uTorrent tries to open the file to write to it again. The Move completed downloads to can be changed to any server share location. The Automatic load torrents in directory location can be changed to any server share location. This setup enables uTorrent to monitor this specific folder for .torrent files and start downloading them automatically. All you have to do to start a download is place the .torrent file in that folder and uTorrent will do its stuff.

directories

Using the Scheduler tab you can set your downloads to occur during “off-peak” periods by setting up a schedule if you so require.

As below, under Advanced Web UI Enable Web Interface and configure a Username and secure Password of your choice.

webui

Click the OK button and close uTorrent.

Next download the uTorrent add-in for the Windows Home Server Console. Do NOT run it but place it in your Add-Ins Shared Folder (\\SERVER\Software\Add-Ins). Log In to your WHS console and go to Settings, Add-ins the Available tab and then click Install under “Windows Home Server – uTorrent”.

Once the console re-starts log back in to the console and go to Settings, uTorrent and for Server type in http://YourIP:Port/gui/ e.g. http://192.168.1.110:22345/gui/
YourIP is your server name or IP address and Port is the uTorrent Port that you set up earlier.

Next insert your User Name and Password as set up earlier. You can press Test Configuration to check all is OK. Red is not and green is fine. You may now OK out of the Settings and close the Console.
Create the User-Defined Service

From your Windows Home Server (Remote Desktop Connection) click Start then Run and type cmd. In the window that opens type the following which is all on one line, including the quotation marks.

“c:\Program Files\Windows Resource Kits\Tools\instsrv.exe” uTorrent “c:\Program Files\Windows Resource Kits\Tools\srvany.exe”

NOTE: Cut and paste will not work, instead highlight and copy the above line and then right-click in the open CMD window and select paste.

Press Enter on your keyboard. Once the screen displays The service was successfully added! you may close the cmd box.

We need to now create a .Reg file using notepad and paste in the 3 lines of code below.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\uTorrent\Parameters]
“Application”=”C:\\Program Files\\utorrent\\utorrent.exe”

When saving make sure that Save as type is set to All Files *.* and save as service.reg. Double click on this saved file to import the settings into the registry on your server.

Now click the Start button and then select All Programs, Administrative Tools and then Services. Find uTorrent right-click and select Properties.

Select the Log On tab. Click the This account button and enter WHS as the This account and enter the Password you setup earlier for this user account and confirm the Password.

OK out and close the Services dialog.

Click Start, Shut Down then Restart.

That’s it job completed. You can now connect to uTorrent either via the web interface using your browser using the format http://YourIP:Port/gui/ or via the WHS console (uTorrent heading).

All you have to do to start a torrent download automatically is place the .torrent file in the \\SERVER\Public\Torrents folder and forget about it.

Comments (17)

KatyJune 24th, 2009 at 1:33 am

Pretty good post. I just came across your blog and wanted to say
that I’ve really enjoyed reading your posts. Anyway
I’ll be subscribing to your blog and I hope you post again soon!

[...] You can read Scott’s tutorial here. [...]

[...] You can read Scott’s tutorial here. [...]

AnonymousJuly 12th, 2009 at 6:53 am

Hello great article. One question. You say “Connect via the Remote Desktop Connection as the user you have just created e.g. “WHS” and your newly created password.” I can only connect via remote desktop as administrator. Should i still install utorrent as administrator over remote desktop?

FreshJuly 21st, 2009 at 8:06 am

This: “c:\Program Files\Windows Resource Kits\Tools\instsrv.exe” uTorrent “c:\Program Files\Windows Resource Kits\Tools\srvany.exe”

just don’t work for me. I get the following error: The filename, directory name, or volume label syntax is incorrect.

HELP!

JFJuly 21st, 2009 at 10:44 pm

I get a similar issue.. I’ve got the HP WHS and its not too friendly with remote dt log on.

KRJuly 24th, 2009 at 3:04 am

I got it to add the service by going to programs\windows resource kit tools\command shell that then opens the command shell, then from there just paste

instsrv uTorrent “c:\Program Files\utorrent\utorrent.exe”

click enter and it should say it added the service.

TimJuly 30th, 2009 at 1:50 am

For those with problems running the instsrv.exe, it appears that when you copy and paste the command from this site, the quotes are not the correct characters. Delete the existing quotes and replace by typing them with your keyboard.

ScottJuly 30th, 2009 at 9:21 am

Thanks Tim for finding the fix to that, not sure why the quotes here are causing that issue.

“Anonymous” – you need to setup a new user for uTorrent by following the instructions here – http://mswhs.com/2007/06/20/create-a-new-user-account-directly-on-the-whs/. I would not recommend installing it using the Admin account.

JordanAugust 6th, 2009 at 3:17 pm

Please help!!!
I have installed the service + reg , but the service wont start automatically nor manualy(pressing start on the service).

The only way it works, it when i login and start utorrent manually.

What am i doing wrong?

Thanks,

Jordan

JigawattsAugust 12th, 2009 at 9:46 am

I’m having the same problem as Jordan. uTorrent won’t startup with the system. I have to manually log onto the server and start it up manually.

Any help would be appreciated.

Thanks
mb

JordanAugust 12th, 2009 at 2:22 pm

Jigawatts, I have removed the service, and used AnyServiceInstaller to re-create it.
AnyServiceInstaller:
http://forum.wegotserved.com/index.php?showtopic=8566
Now the service starts, but I see and empty uTorrent tab.
so…

skippy911November 24th, 2009 at 1:57 am

For those having issues with it not working I noticed the reg key even though it said it imported the data correctly it did not. So I opened regedit and browsed down to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\uTorrent\Parameters

I then added a string value named: Application

And made its value: c:\program files\utorrent\utorrent.exe

When I rebooted everything worked as it should :) Hope this helps.

PlaytoyJanuary 6th, 2010 at 7:48 pm

Thanks a lot skippy911!
You saved my day

TechTarHeelJanuary 20th, 2010 at 6:33 pm

Has anyone run into issues with 64-bit systems (like HP EX495)?

From MSFT website:

“Note: The Windows Server 2003 Resource Kit Tools are not supported on 64-bit platforms.”

Any thoughts on what this may do if I follow the Wiki and install uTorrent as a Service using WHS 2003 Resource Kit Tools?

Thanks

MaxGeekFebruary 12th, 2010 at 10:35 pm

EX495 is not 64bit. WHS is currently 32bit only.

humani1February 14th, 2010 at 8:39 am

Hello,

I think I have it working as per the instructions, thank you very much! However, I am used to having my tv shows downloaded via the RSS downloader in utorrent – and even though I have set the RSS feeds up correctly (they work if I run uTorrent), RSS feeds don’t seem to work when running utorrent as a service. Has anyone else run into this problem or can someone point me into the right direction?

Also, the other problem would be that rss downloads only get put in the standard download folder, from which I can’t access via the clients. Is there a way to have those files moved to the shared folders once they are done, just like with “regular” downloads?

Leave a comment

Your comment

Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 401 bad guys.