~/Dropbox as a service on Windows Server 2008 file server
21 January 2013
I’ve set up a Dropbox account on a file server so that:
Remote users can use Dropbox to share files with each other and with users of the file share, and
Disaster recovery procedures that include backups of the file server cover the files hosted offsite in the Dropbox account.
By default, Dropbox installs as a desktop application. To get it to work as a Windows service it needs to be run within a utility in the Windows Server 2003 Resource Kit called srvany.exe. Since the only instructions I could find for setting this up were for a Windows 2003 server I thought I would document the procedure for Windows 2008 here.
Install Dropbox on the file server as a desktop application.
Right-click the Dropbox notify icon and open preferences.
Uncheck Show desktop notifications and Start Dropbox on system startup, save and close.
Right-click the Dropbox notify icon and select Exit Application.
Install the Windows 2003 Resource Kit. I installed this on a Server 2003 box and copied srvany.exe to the file server, but it should install to 2008.
Open cmd / Powershell and run sc \\server-name create Dropbox binPath= "<path to svrany.exe>" DisplayName= "DropBox". The spaces after the = are important.
Open regedit.
Under HKEY_LOCAL_MACHINE\SYSTEM\Dropbox create a new key called Parameters.
Under the Parameters key create a new string value Application and enter the full path to dropbox.exe.
Close regedit.
Open the Services management console.
Change the Dropbox service to automatic startup and set the logon user to the Administrator account.
Start the Dropbox service.
Note that the Dropbox service isn’t running on the desktop so administrative tasks such as sharing folders need to be performed via Dropbox’s web interface.