Skip to content

Instantly share code, notes, and snippets.



Last active Nov 17, 2020
What would you like to do?
Rclone Service Windows 10
Copy nssm.exe to same directory that rclone is in. I launched NSSM, by opening an elevated command line. Type cmd in the search bar and right click and choose “run as administrator.”
1. cd c:\rclone (or wherever you have rclone located)
2. nssm install “Rclone Mount”
3. Fill in the info below
4. Still in the command prompt, type services.msc
5. Scroll down and choose your service and right click and start it.
6. If it fails to start, stop the service
7. Go back to command prompt and run sc.exe delete “Rclone Mount”
8. Enter the command from step 2 above and repeat until you complete everything with no typos and it works.
Going to post the various parts of NSSM that I’ve filled in. Originally it was failing because when I did the copy paste, for some reason it was doing one dash and one hyphen. I could paste it to command line and it would work. But to NSSM it would change it to hyphen. So I ended up just typing it out, instead of copy paste.
Application tab:
Path: C:\rclone\rclone.exe
Startup Directory: C:\rclone
Arguments: mount gdrive-crypt: s: --config “C:\rclone\rclone.conf” --vfs-cache-mode writes
Service name: Rclone Mount
Details tab:
Display name: Rclone Mount
Description: Automatically mounts the encrypted google drive using rclone.
Exit actions tab:
Delay restart by: 10000 ms (10 seconds)
If I didn’t reference it above, I didn’t change it away from defaults.
Edit Service with regedit:
"Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rclone Mount"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment