How to connect a Bluetooth network connection using the command line

16,417

Solution 1

If the command

netsh interface show interface

Does not show your interface, then you can't control it that way.

Just a guess, but it looks like you are trying to establish a Dial-Up network connection over Bluetooth.

This works for me:

C:\Users\me>rasdial "USSC Bluetooth Dial-up Connection"
Connecting to USSC Bluetooth Dial-up Connection...
Verifying username and password...
Registering your computer on the network...
Successfully connected to USSC Bluetooth Dial-up Connection.
Command completed successfully.

C:\Users\me>rasdial "USSC Bluetooth Dial-up Connection" /DISCONNECT
Command completed successfully.

Solution 2

If someone like me, was looking for PAN (Personal Area Network) via Bluetooth auto-connect, there is no native way that I have found. However, there exists three 3rd party solutions.

Share:
16,417

Related videos on Youtube

Ed Guiness
Author by

Ed Guiness

Updated on September 17, 2022

Comments

  • Ed Guiness
    Ed Guiness over 1 year

    I can enable a Local Area Network interface for my machine with the command

    netsh interface set interface "Local Area Connection" ENABLED
    

    Is there an equivalent command to connect a bluetooth network connection?

    I've tried

    netsh interface set interface "Bluetooth" ENABLED
    

    but it seems to have no effect, the connection remains disconnected.

    I also tried

    netsh interface set interface "Bluetooth" connect=CONNECTED
    

    but this returns

    One or more essential parameters not specified

    I know this Bluetooth connection is otherwise ok since I am able to connect using Control Panel > Network Connections, right-clicking on Bluetooth > Connect.

  • Ed Guiness
    Ed Guiness about 14 years
    Nice guess. 123