Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $a = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager, Windows.Networking.NetworkOperators, ContentType=WindowsRuntime]::CreateFromConnectionProfile(
- [Windows.Networking.Connectivity.NetworkInformation, Windows.Networking.Connectivity, ContentType=WindowsRuntime]::GetInternetConnectionProfile()
- )
- $a.StartTetheringAsync() # to start the Mobile hotspot
- $a.StopTetheringAsync() # to stop the Mobile hotspot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement