How to run a Bitcoin miner as a service in the background in Windows?

This steps show how to run cgminer as a service on windows.  Therefore as soon as windows has been booted the miner will start mining for BitCoins.

The following shows the steps to run a Bitcoin miner as a service:

  1. Download BitMoose
  2. Unzip and move the unzipped folder to the root of your c:/ drive.
  3. Go to the folder of Bitmoose from step 2 and click miners and then cgminer
  4. Delete the contents of the cgminer folder
  5. Download the latest version of cgminer and unzip the contents
  6. Copy all the files of the latest version of cgminer to the cgminer folder of Bitmoose


  7. Go back to the Bitmoose folder and open bitmoose-gui.exe
  8. Once open you will see a GUI interface.
    Here you will need to fill in the details of your mining setup.  I am using a mining pool (Slush’s pool), which I signed up to from their website.

    You will need to enter the Host Address (Slush’s pool’s host address is and Port Number (Slush’s pool port number: 8332)

    Then you will need enter the username and password of your worker (If using Slush’s pool this can be obtained by logging into the dashboard and their you will find or create the worker username and password)

    Next select cgminer from the program list and delete the argument -w 128 leaving just -d 0.

    Click File and Save

  9. Click on Service at the top and then choose install


    On the bottom left of the window, wait for the message Service Not Installed to change to Service Stopped


    Once the status message is Service Stopped, then click Service from the top menu and then Start

If all the steps are done correctly then message in the bottom left of the window should change to Service Started and the miner should start mining for Bitcoins.  Keep an eye out for the messages, which should show messages like ‘Accepted’ and the speed of mining with Mh/s or Gh/s.


Now when starting Windows you will find that the miner will automatically run in the background.  This is because there is now a Windows service installed called Bit Moose Mining with all your mining settings.


Other useful links:

2 thoughts on “How to run a Bitcoin miner as a service in the background in Windows?

  1. atut

    why it says cgminer: -d 0 argument not recognized?

  2. Eine sehr gute Erklärung. das wird dem ein oder anderen doch eine sehr große Hilfe sein.

Leave a Reply