![]() # Check whether Mobile Hotspot is enabled # Be sure to include Ben N.'s await for IAsyncOperation: ![]() $tetheringManager = ::CreateFromConnectionProfile($connectionProfile) $connectionProfile = ::GetInternetConnectionProfile() The following code snippet requires Ben N.'s await function for IAsyncOperation and IAsyncAction in PowerShell, which can be found here. There's a WinRT API to control and configure the "new" mobile hotspot you're referring to. command) and the "new" Mobile Hotspot use different technologies under the hood. The Hosted Network (which can be configured using the netsh wlan set hostednetwork. Which brings me again to the question: how can I automate (by script) the enabling/disabling of this hotspot? So it seems that MS is using a very different technique for the built-in hotspot than the netsh variant. As soon I deactivate the HotSpot, the adapter vanishes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |