Share via

Mobile hotspot & command line

Anonymous
2020-11-10T11:18:00+00:00

Hi !

I am desperately trying to use Windows mobile hotspot through command line (to use it afterwhile via the programm I am developping). 

Unfortunately, impossible to find a way to set it...

Does anyone know how to start/stop mobile hotspot + (cherry on the cake) get the list of connected devices ??

PS: I read about "netsh wlan set hostednetwork mode=allow" ... But this not seems to be the same behavior as built in hotspot from Windows10

Thanks for your help !

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-11-10T11:38:27+00:00

    Hello, I am Navid , and I am an Independent Advisor. I will do my best to help you.

    It's a very interesting question for me also. Thank you to ask it. Fortunately, there is an official API from Microsoft that you could find it here:

    https://docs.microsoft.com/en-us/uwp/api/Window...

    I think and I hope that these two methods are what you are looking for:

    StartTetheringAsync()

    StopTatheringAsync()

    And maybe this property gives you Cherry on the cake:

    ClientCount

    But I am not sure. Because honestly I did never use it. (I hope that it's not just count, but count and list.)

    Best,

    Navid Dariya

    Was this answer helpful?

    0 comments No comments