Tricks

How to turn off Mobile Hotspot automatically when idle on Windows 10

How to turn off Mobile Hotspot automatically when idle on Windows 10

Mobile Hotspot is another great feature that came with Windows 10. However, if your device runs on battery, keeping the Mobile Hotspot running will result in it draining even faster. And a flaw in the implementation of this feature is that it stays activated even when the connection is idle without any devices being connected.

This directly affects the battery life and sometimes even the performance of the network connection is compromised. A good idea would for Microsoft here be to bring a background timeout. But one can do it now by just running a PowerShell command. We will be discussing that in this article.

Turn Off Mobile Hotspot automatically when idle

In order to turn Off Mobile Hotspot automatically when idle on Windows 10, you need to follow a fairly simple method.

Copy the following command:

powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/c,net stop "icssvc" & REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\icssvc\Settings" /V PeerlessTimeoutEnabled /T REG_DWORD /D 1 /F & net start "icssvc"' -Verb runAs"

Now, open Notepad and paste the command you just copied into this blank Notepad file and save it.

You have select Save as and for the File type select All files and set the name as TurnOnTimer.bat

Save that file on your Desktop.

Run the file and for the UAC or User Account Control prompt, select Yes.

It will run a series of scripts in a command line and will Turn Off Mobile Hotspot automatically when idle.

In case you want to revert back any changes made by the script we created, follow these steps.

Copy the following command:

powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/c,net stop "icssvc" & REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\icssvc\Settings" /V PeerlessTimeoutEnabled /T REG_DWORD /D 0 /F & net start "icssvc"' -Verb runAs"

Open Notepad and paste the command you just copied into this blank Notepad file and save it.

You have select Save as and for the File type select All files and set the name as TurnOffTimer.bat

Save that file on your Desktop.

Run the file and for the UAC or User Account Control prompt, select Yes.

After a series of commands being run on a command line, the changes will revert back to the defaults.

Let us know if this worked for you.

Gry Darmowe i otwarte silniki gier do tworzenia gier na Linuksa
Darmowe i otwarte silniki gier do tworzenia gier na Linuksa
Ten artykuł zawiera listę darmowych i otwartych silników gier, których można używać do tworzenia gier 2D i 3D w systemie Linux. Istnieje wiele takich ...
Gry Samouczek Shadow of the Tomb Raider dla systemu Linux
Samouczek Shadow of the Tomb Raider dla systemu Linux
Shadow of the Tomb Raider to dwunasty dodatek do serii Tomb Raider - przygodowej serii gier akcji stworzonej przez Eidos Montreal. Gra została dość do...
Gry Jak zwiększyć FPS w Linuksie??
Jak zwiększyć FPS w Linuksie??
FPS oznacza Klatki na sekundę. Zadaniem FPS jest pomiar liczby klatek na sekundę podczas odtwarzania wideo lub wydajności gier. W prostych słowach lic...