


Give it a name that tells you what the script is for, and save it with the PS1 file extension. If ($tetheringManager.TetheringOperationalState -eq 1)Īwait ($tetheringManager.StartTetheringAsync()) () $tetheringManager = ::CreateFromConnectionProfile($connectionProfile) $connectionProfile = ::GetInternetConnectionProfile() $netTask = $asTask.Invoke($null, | Out-Null Open a new Notepad file and paste the following in it. If you’re running an older version of Windows 10 that does not have the Power Saving switch under Mobile Hotspot settings, you can use a PowerShell script to keep mobile hotspot on. This option may not be present on older versions of Windows 10. Scroll down to the Power Saving section and you’ll see a switch called ‘When no devices are connected, automatically turn off mobile hotspot’. Open the Settings app and go to the Network & Internet group of settings. The second will work on Windows 10 regardless of the version. The first and simplest one may not be available if your Windows 10 isn’t up to date. Here’s how you can always keep mobile hotspot On. This means that you will have to turn it on again and then connect your device. In some cases, if a device is connected but it isn’t actively using the connection, the hotspot will turn off. When you enable the mobile hotspot on Windows 10, it will remain On so long as a device is connected to it.
