Bluetooth toggle shortcut  

Page 1 of 2 12 LastLast

  1. Posts : 7
    Windows 10
       #1

    Bluetooth toggle shortcut


    Hello,

    I would like to know if there is any way to have a shortcut for turning the bluetooth on/off
    Keyboard shortcut would be ideal but anything else will do, a bat file or a small app.

    Thank you.
      My Computer


  2. Posts : 64,466
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Nrby, and welcome to Ten Forums. :)

    If you like, you could open the Action Center (Win+A), and click/tap on the Bluetooth quick action button at the button to toggle it on and off.

    Turn On or Off Bluetooth in Windows 10 Windows 10 Network Sharing Tutorials
      My Computers


  3. Posts : 7
    Windows 10
    Thread Starter
       #3

    Hello there ... Thanks for the welcome and the very quick reply.
    My problem is that I would need to do this without seeing the screen ... So anything that involves clicks/tabs won't work for me
      My Computer


  4. Posts : 64,466
    64-bit Windows 11 Pro for Workstations
       #4

    You might see if this below may work for you then. It's basically to create a .bat file that will stop and start the Bluetooth service, and create a shortcut of the .bat file to use that you can also assign a keyboard shortcut to.

    How can I toggle Bluetooth on and off via a shortcut or script in Windows 8.1? - Super User
      My Computers


  5. Posts : 7
    Windows 10
    Thread Starter
       #5

    Brink said:
    You might see if this below may work for you then. It's basically to create a .bat file that will stop and start the Bluetooth service, and create a shortcut of the .bat file to use that you can also assign a keyboard shortcut to.

    How can I toggle Bluetooth on and off via a shortcut or script in Windows 8.1? - Super User
    Found that when I researched this, it didn't work for me, i presume because it's for windows 8.1,
    if I created the bat file and launch it as admin I can see the command prompt window appear stating that it will change the Bluetooth state but nothing actually happens
      My Computer


  6. Posts : 64,466
    64-bit Windows 11 Pro for Workstations
       #6

    It's the same for Windows 10 to stop and start the Bluetooth "bthserv" service.

    See if creating a .bat file with this below may work better to also disable/enable the service instead of just stop/start.

    Code:
    @echo off
    
    for /F "tokens=3 delims=: " %%H in ('sc query "bthserv" ^| findstr "STATE"') do (
      if /I "%%H" NEQ "RUNNING" (
       sc config "bthserv" start=Auto & net start "bthserv"
      ) else if /I "%%H" NEQ "STOPPED" (
       net stop "bthserv" & sc config "bthserv" start=disabled
      )
    )

    If you wanted the command prompt to pause.

    Code:
    @echo off
    
    for /F "tokens=3 delims=: " %%H in ('sc query "bthserv" ^| findstr "STATE"') do (
      if /I "%%H" NEQ "RUNNING" (
       sc config "bthserv" start=Auto & net start "bthserv" & pause
      ) else if /I "%%H" NEQ "STOPPED" (
       net stop "bthserv" & sc config "bthserv" start=disabled & pause
      )
    )
      My Computers


  7. Posts : 7
    Windows 10
    Thread Starter
       #7

    Recording #2 - YouTube

    thats a screen recording of my test
      My Computer


  8. Posts : 64,466
    64-bit Windows 11 Pro for Workstations
       #8

    I've updated the .bat above that should help. You may need to close and reopen Settings after running the .bat to refresh and see the change.

    Remember though, this doesn't directly turn on/off Bluetooth. It enables and disables the Bluetooth service that should effectively turn on/off Bluetooth.
      My Computers


  9. Posts : 7
    Windows 10
    Thread Starter
       #9

    well I get different messages now but that fact that I am using a bluetooth mouse to run the bat and I can run it multiple times is a a good indicator that the bluetooth hasn't stopped working :)
      My Computer


  10. Posts : 64,466
    64-bit Windows 11 Pro for Workstations
       #10

    Does the Bluetooth mouse use its own USB adapter?

    If so, then it most likely wouldn't be affected by enabling/disabling the Bluetooth service. You would need to enable or disable the Bluetooth mouse in Device Manager instead.

    Why are you needing to disable the mouse for? Is there some issue?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:42.
Find Us




Windows 10 Forums