Before upgrading to Windows 8.1 I used the bluetooth icon in the notifications area to turn bluetooth on and off. Now, in Windows 8.1 it requires about 6 clicks to get this job done through the new metro UI. See How to turn on/off Bluetooth on Windows 8.1 for the slow way to get this job done.

I would like to go back to being able to toggle my bluetooth in a couple of clicks without having to leave my desktop. Can it be done?

1 Answer 1


Yes, it can be done. I'm not sure if this is the easiest way, but it works

Creating a batch file

  1. Create a new .bat file and call it something like bluetooth.bat
  2. Inside the file, paste the following script

The script checks if the Bluetooth Support Service (bthserv) is running.

If running, it stops the service. If stopped, it starts the service.

@echo off

for /F "tokens=3 delims=: " %%H in ('sc query "bthserv" ^| findstr "STATE"') do (
  if /I "%%H" NEQ "RUNNING" (
   net start "bthserv"
  ) else if /I "%%H" NEQ "STOPPED" (
   net stop "bthserv"
  1. Save the .bat and then run it as an Administrator


If the service is stopped, you'll see:

If the service is running, you'll see:

If you want to stop the window from automatically closing, add a new line with @pause to the bottom of your script. Then you'll be prompted with Press any key to continue . . ..

Edit from comments:

The first time you use the batch file, add @pause to the bottom of the script and select y for any prompts that appear. Then test it out once more to make sure it's working as intended. If it is, you can remove @pause.

Always run as Administrator

If you want, which I assume you will, for the .bat to always run as Admin, do the following:

  1. Right click on your bluetooth.bat and click "Send to" -> "Desktop (Create Shortcut)

  1. Right click on the shortcut, click properties, then find the "Shortcut" tab at the top. Click "Advanced"

  1. Select "Run as Administrator"

  1. From now on, run the shortcut instead! All done.
  • 1
    This does not work on Windows 8.1.
    – Ahmed
    Oct 23, 2015 at 3:40
  • @Ahmed What about it doesn't work? AFAIK the service name is the same. What error do you get, in specific?
    – Insane
    Oct 23, 2015 at 3:41
  • No error, just after i ran the .bat file as administrator, my bluetooth is still on and my bluetooth speaker is still connected to computer.
    – Ahmed
    Oct 23, 2015 at 3:44
  • 1
    I ran it again and it gave the appropriate turning "off" and turning "on" if run again.
    – Ahmed
    Oct 23, 2015 at 4:09
  • 1
    Well, it's not doing anything. My bluetooth is still connected and playing music. Nothing seems to be affected.
    – Ahmed
    Oct 23, 2015 at 5:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .