-
-
Save j717273419/a95b3adb826078c7d144baf1cf271a1d to your computer and use it in GitHub Desktop.
win10 / windows 10 auto start hotspot.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile() | |
$tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile) | |
# Start Mobile Hotspot | |
$tetheringManager.StartTetheringAsync() | |
# Stop Mobile Hotspot | |
#$tetheringManager.StopTetheringAsync() | |
# Check whether Mobile Hotspot is enabled | |
$tetheringManager.TetheringOperationalState |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reference:
Turn on mobile hotspot on startup Windows 10