Automatically Turn Off Hotspot when idle

One of the useful features that came with Windows 10 is the Mobile Hotspot although there’s a downside to it – it drains your battery faster especially if your Windows 10 device is running on battery. Another one of its flaws in the implementation of this feature is that it stays activated even when the connection is idle. In other words, it is still activated even if no devices are connected to it. As a result, it consumes battery life and affects it. There are also instances when it affects the performance of the network connection. At the time of writing, Microsoft hasn’t done anything about this dilemma yet so in the meantime, you can continue reading this post to resolve this issue on your Windows 10 device.

You can remedy this Mobile Hotspot issue by running a command in Windows PowerShell. To get started, follow the given instructions below.

Turn off Mobile Hotspot Automatically:

Step 1: The first thing you have to do is to copy the following command:

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

Step 2: After copying the command given above, open the Notepad app and paste the command you copied there and save it. And when saving it, select the “Save as” option and its File type as “All files”.

Step 3: After that, put “TurnOnTimer.bat” as the file’s name and save it on your Desktop.

Step 4: Once done, run the file you just created, and when a User Account Control or UAC prompt appears, just click on Yes.

Step 5: After you run the file, it will run a series of scripts in a command line which will turn off the Mobile Hotspot automatically when idle.

And that’s how you automatically turn off the Mobile Hotspot when your Windows 10 device is idle. On the other hand, if you want to undo the changes made, you can always do so using the steps provided below.

Turn on Mobile Hotspot:

Step 1: Copy and paste the following command in the Notepad app:

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

Step 2: After copying and pasting the command, save it as “TurnOffTimer.bat” on the Desktop.

Step 3: Once done, run the file like what you did earlier and select Yes when a UAC prompt pops up. This will run a series of scripts on a command line which will revert the changes back to their default state.

Do You Need Help with Your Device?

Our Team of Experts May Help
Troubleshoot.Tech Experts are There for You!
Replace damaged files
Restore performance
Free disk space
Remove Malware
Protects WEB browser
Remove Viruses
Stop PC freezing
GET HELP
Troubleshoot.Tech experts work with all versions of Microsoft Windows including Windows 11, with Android, Mac, and more.

Share this article:

You might also like

DiskPart has encountered an error
As you know, Diskpart is a useful utility that helps in managing the disks in a computer. It is a very useful tool that even when the GUI-based disk management tools in Windows 10 operating system fails, the Diskpart utility still tends to work. However, it also does not mean that this utility does not experience issues as it still does, from time to time. One of the issues you may encounter when using the Diskpart utility is when you encounter an error message that says, “DiskPart has encountered an error, Access is denied”. This kind of error in the Diskpart utility could be caused by a number of factors. For one, it could be that the Write-Protection is enabled on the drive where the operating is being performed or it could also be that the Command Prompt terminal does not have administrator-level permissions to carry out the command. Thus, you can try to run the Diskpart utility again but this time with admin privileges or you could also remote the Write-Protection from the concerned drive. For more details, refer to the instructions given below.

Option 1 – Try running Command Prompt with Administrator-level permissions

  • In the Start Search, type “command prompt” and from the search results that appear, look for Command Prompt.
  • Once you found it, right-click on it and select the “Run as administrator” option.
  • After that, try to execute the Diskpart operation once again and see if you still encounter the same error.

Option 2 – Try to remove the Write Protection from the drive

As mentioned, removing the Write-Protection on the concerned drive could also help you fix the problem and there are two ways to get rid of the write protection – you can either use the Diskpart utility or the Registry Editor. How? Refer to the following steps.

Via Diskpart utility:

  • Open Command Prompt with admin privileges and then type the “diskpart” command and tap Enter to execute it.
  • Next, type “list disk” and tap Enter to get the list of all the Disk connects or all the partitions that are formed on those disks.
  • After that, you need to choose one command depending on the list of commands you entered. Type “select disk #” and tap Enter to select the disk or partition you want to select.
  • Then type “attribute disk clear readonly” and tap Enter to Disable the Write Protection on the selected disk or partition.

Via Registry Editor:

  • Tap the Win + R keys to open the Run utility and type “Regedit” in the field and then tap Enter to open the Registry Editor.
  • Next, navigate to the following registry key:
ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies
  • After that, look for the DWORD named “WriteProtect” and double click on it, and then set its Value Data to “0”.
  • Now restart your computer and see if the problem is now fixed or not.
Read More
A command is not recognized Error in Windows
A command is not recognized Error, what it is? If you are constantly using programs like CMD or DISM directly from the Run prompt, you might have wondered how they launched instantly and how is it that the Windows operating system is able to find them right away. For instance, when you create a shortcut of a program, the shortcut knows where exactly the program is located and launches it quickly. The Windows operating system keeps a list of paths where the most common system programs are located so when you use the Run prompt, it opens easily. The list kept by Windows is called the Windows Environment Variables. If something goes wrong with this list, the programs won’t work. So in this guide, you will be guided on how you can troubleshoot the problem where any command you use is not recognized as an internal or external command, operable program, or batch file. Before you start troubleshooting the problem, you need to make sure that the program you are trying to run really exists. In fact, this can also happen to the Run program which is pulled up using the Win + R shortcut. To check, go to C:\Windows\System32 and there, check if the program exists or not or you can also try searching for the EXE in the System 32 folder. After making sure that the program exists, refer to the instructions given below.

Modify the Windows Environment Variables:

  • Step 1: Tap the Win + X keys and then select System. After that, it will open the section where you can see all the properties on your computer.
  • Step 2: Next, select the Advanced system setting located on the left pane and click on the Environment Variables.
  • Step 3: After that, locate Path under the System Variables and select EDIT.
  • Step 4: Before you edit, you need to copy the entire string and paste it into the Notepad app so that in case something went wrong, you can paste it back.
  • Step 5: Next, look for the directory path, “C:\Windows\System32”. If you can’t find it, try adding a semi-colon at the end.
  • Step 6: Afterwards, click OK to save the changes made and then exit.
  • Step 7: Now restart your computer as all the paths are picked up when your computer restarts.
Note: Now all you have to do is to try executing the programs once again – the ones where you got the error, “ is not recognized as an internal or external command, operable program or batch file” every time you open them and then see if you can now open these programs or not.
Read More
Fix Sechost.dll missing error in Windows 10
If you are facing a missing sechost.dll error in your Windows 10, welcome, you have come to the right place to solve it and get back your computer in working order. Sechost.dll is a file that allows other programs to function and complete their tasks as well as control and change the behavior of other programs. The file is found in Windows subfolder System32, it is a completely safe file and should not be deleted. Sometimes however various other reasons can corrupt it or delete it. This guide will lead you to common solutions on how to get file back up and running.
  1. Update device driver

    Have you installed a new device and all of a sudden you get the error message that Sechost is missing? Update device driver, it is possible that the file has been corrupted or replaced with an older version and therefore reported as missing. Update device driver to lastest version and issue should run away.
  2. Re-register file via command prompt

    If Sechost got corrupted re-registering will solve the issue, press ⊞ WINDOWS + X and choose Command prompt (administrator), click on it. type regsvr32 sechost.dll and press ENTER Reboot your PC
  3. Reinstall application

    Usually, Sechost gone bad or missing is due to the installation of another application that corrupts the file. Reinstall the application to try to solve errors. In order to properly reinstall the application first use the control panel to remove it completely from the system and then install it again, hopefully, this time correct version of Sechost.dll will be installed in the system.
  4. Check your hard drive

    In some cases, a hard drive malfunction can cause several files to be corrupted or gone missing. To eliminate hard drive malfunction run check disk from Windows on C drive to check it and find if there are any errors.
  5. Uninstall Windows update

    Same as with some application, even Windows update could corrupt some files due to update not being properly downloaded. Try uninstalling the latest update and revert to the previous Windows state, then update it again.
Read More
Intel & MS fixed DRM issue with alder lake
Due to its hybrid core technology, the Alder Lake line of processors had some DRM issues with some game titles where DRM protection software detected hybrid core design switching via manager as a hack attempt and prevented the game from working properly. Over 50 titles were affected by this issue, now only 3 remain still affected but it is being worked on them so that can be also resolved. alder lake drmIntel says that the remedy to the issue for these games is the scroll lock fix which can be done so by enabling Legacy Game Compatibility mode from the BIOS of your motherboard. When running the said games, you can press scroll lock to park the E-cores on Intel's Alder Lake Desktop CPUs to get rid of DRM issues. Certain motherboard manufacturers such as MSI and Gigabyte have made this even easier through software tools with which you don't have to access the BIOS. All you need to do is select a button in the tool which works on both Windows 11 and Windows 10 operating systems and you will enable compatibility mode.
Read More
What to do if Windows 10 PC turns on by itself
A PC that turns on by itself every so often can get quite annoying. Many users have faced this problem countless times. There are lots of possible reasons why your Windows 10 PC turns on by itself, wakes up from sleep, standby, or even when it’s shut down. To find out what exactly woke your computer, simply open Command Prompt as admin and type the following command:
powercfg –lastwake
Once you enter the command given above, it will show you the last device that woke your PC up. After that, you need to type in the next command:
powercfg –devicequery wake_armed
After entering the command, it will show you a list of all the devices that could wake your PC up. The goal in running these commands is to understand the reason what’s really causing your PC to turn on and see the reason is on the hardware level or not. Here are a couple of options you can try if your Windows 10 PC turns on by itself.

Option 1 – Try disabling Fast Startup

As you know, Windows 10 comes with a mode called Fast Startup which does not turn off the computer in the usual manner. This mode keeps your computer in a mixed state so that when you turn it on again, it will be a lot faster. However, as useful as this feature appear to be, some security experts find this an issue, for numerous reasons – for one, it can turn on your Windows 10 PC by itself. Thus, you need to disable this feature to fix the problem.

Option 2 – You need to stop the Task Scheduler from waking up your computer

There are times when the issue has something more to do with the software than hardware. It could be that you are using a Scheduled Task to get some work done on your computer at a particular time of the day or many times a day. That’s why if you really are using Task Scheduler, you need to change the Power settings of Windows to make sure that it ignores those tasks rather than deleting them instead when your computer is either on Hybrid or Standby mode.
  • Open the Power Options and then click on “Change Plan Settings”.
  • After that, make sure to choose the correct power plan and then select the “Change advanced power settings” option.
  • Next, look for the Sleep tree and expand it to view the “Allow Wake Timers” option and then disable it. Disabling this option will make sure that none of the program that could wake your PC up when it’s either on shutdown or sleep mode. However, this only applies to laptops.

Option 3 – Try to disable Automatic Restart

There are instances when the computer crashes and the system restarts itself. This is actually by design – when your computer has been left on standby, the computer will restart and if the program repeats, it will keep on waking your PC up.
  • In the Search bar, type in “system”.
  • Once it appears from the search results, click on it.
  • Next, select Advanced system settings on the left side and then go to the Advanced tab.
  • From there, click on Settings under Startup and Recovery.
  • Then unmark “Automatically Restart” and click on OK.

Option 4 – Adjust the Power Management option of both the Keyboard and Mouse

As you know, two of the culprits in waking your PC up are the keyboard and the mouse. If they’re slightly moved or hit, your PC turns on. To prevent these two from waking your computer up, you need to make some adjustments to their power management option since they have one. You can disable this option to ensure that they won’t wake your PC up unless you really want it to.
  • Tap the Win + X keys and then tap M to open the Device Manager and list all the hardware on your computer. From there, select your keyboard or mouse.
  • Next, right-click and then go to Properties and go to the Power Management tab.
  • In this tab, uncheck the “Allow this device to wake the computer” box.
Note: Aside from the keyboard and mouse, if you are also using any gaming rig to play games on your computer, then you might have to disable their power options as well as they could also wake your computer. Just make sure that either the keyboard or the mouse has the ability to wake your computer up at the very least as it can be quite inconvenient to tap the Power button every time you want to turn on your computer.

Option 5 – Modify Wake On Lan

The Wake On Lan feature can bring back your computer online if it is connected to a network. This feature is useful especially when a computer wants to communicate or to send data or files to a network computer which should come online only when it’s requested. Wake On Lan is built into the hardware, i.e. network adapter so it is one of the possible reasons why your PC turns on by itself.
  • Tap the Win + x keys then hit M to open the Device Manager and then under the Network adapters, look for the one that was listed above. Take note that you must not change anything with the ones that are listed as Miniport.
  • Next, right-click and select Properties and then go to Power management and from there, uncheck the “Allow this device to wake up the computer” option. This will ensure that no PC on the network can ever wake your computer up.

Option 6 – Prevent any scheduled Windows Update and Automatic maintenance

It is also possible that the Windows Update has restarted your PC to complete the update. This depends on your active hours or a predefined schedule. AS you know Windows has a built-in Automatic Maintenance mode which wakes the computer up at the scheduled time and performs the system update. This could be one of the possible reasons why your computer turns on by itself. so to prevent any scheduled updates and maintenance, you can simply change the time for Automatic maintenance. How? Follow these steps:
  • Open Settings then go to Windows Update and Security >Windows Update and select Active Hours.
  • After that, type in “Automatic maintenance” in the search bar to change the time for Automatic maintenance.
  • From there, you can adjust the timing or just uncheck the “Allow scheduled maintenance to wake up my computer at the scheduled time” box.
Read More
Telnet not recognized as internal/external
In case you don’t know, a teletype network, also known as Telnet, is a protocol that is meant for internet or LAN communication which is used primarily to control other computers effortlessly. And it is available as a command-line utility in Windows and helps users in opening a command-line interface for the remote computer. However, a lot of users have reported an error that states, “Telnet is not recognized as an internal or external command, operable program, or batch file” when you try to use it. If you are one of these users, then you’ve come to the right place as this post will guide you on how to fix this error in Windows 10. This kind of error means that the Telnet utility is not installed on your computer but Telnet is a default feature in Windows 10 so the protocol mainly is not enabled yet. The Telnet client is disabled by default in Windows 10 and to fix this error, you can try to enable the Telnet Client via Programs and Features or try to install Telnet using an elevated Command Prompt.

Option 1 – Try to enable the Telnet Client via Programs and Features

The first thing you can do is to enable the Telnet client using Programs and Features since it is disabled by default. To do that, follow the steps below.
  • Tap the Win + R keys to open the Run dialog box and type “appwiz.cpl” in the field and hit Enter to open the Programs and Features window.
  • Next, select the “Turn Windows features on or off” from the options given on the left-hand side.
  • After that, look for the Telnet client from the list and check the checkbox next to it and then click on OK to save the changes made.
  • Now restart your computer.

Option 2 – Try to install Telnet via an elevated Command Prompt

If enabling the Telnet client using Programs and Features didn’t work, then you can try to do it using Command Prompt instead. To get started, follow the steps given below.
  • In the Windows Search bar, type “command prompt” in the field and right-click on Command Prompt from the search results, and select the “Run as administrator” option.
  • Next, execute this command to enable the Telnet client: dism /online /Enable-Feature /FeatureName:TelnetClient
  • Once the command has been executed, close the Command Prompt and restart your computer.
Read More
How to Resolve Runtime Error 372

What is the Runtime Error 372?

Runtime Error 372 is one of the various types of runtime errors on Windows PC. This error code hampers your ability to access and run Microsoft Visual Basic applications on the system.

Solution

Restoro box imageError Causes

Runtime Error 372 can occur due to multiple reasons:
  • Corrupt application due to viral infection
  • Missing or damaged DLL file
  • Poor PC maintenance
  • Data overload
  • Registry damages
Delay in resolving the runtime error 372  exposes your PC to further problems like the inability to install new programs, Windows startup issues, slow PC performance, system hang-ups, and crashes, etc. Therefore, it is recommended to take measures to resolve the runtime error 372 immediately.

Further Information and Manual Repair

The registry is one of the most critical components of Windows PC. It stores every data and configuration of your computer. Every hardware and software on the system has to connect to the registry to function properly. However, everyday and frequent PC usage keeps creating wasted, obsolete and invalid entries on your system and saves them in the registry. And if not cleaned, these files dilate the registry and eventually cause the registry to malfunction. DLL files go missing and often get damaged or corrupt. This leads to runtime error pop-ups like the error code 372. Furthermore, sometimes the registry also gets damaged due to malware attacks and viral infections. This malicious software damages the registry and exposes your system to serious PC threats like system failures, data loss, and data breaches.

Solutions To Runtime Error 372

To resolve the runtime error 372 on your system, clean and restore your registry. For this, you don’t have to hire a technician and spend hundreds of dollars when you can repair it for free. All you have to do is download Restoro. This is a powerful one-stop solution for all your PC-related problems. It functions as a registry cleaner and a system optimizer. Restoro is a user-friendly Windows PC repair tool that can be used by all levels of users. To run and operate this software on your system you don’t have to be a computer programmer or an expert. Its simple navigation and layout make it very easy to use. It resolves disk fragmentation issues which lead to missing DLL files. It also repairs the damaged and corrupted registry thereby resolving runtime errors like the error code 372. Restoro is a bug-free, reliable, and efficient tool. It is compatible with all Windows versions. Click here to download Restoro to repair the runtime error 372 on your PC.
Read More
Get public IP address inside Windows 10
There are a lot of online services and a lot of ways to get your public IP address. One of them being typing whats my IP in Google search and you will get immediate results. But there is a way to get the same information inside Windows 10 which could be very useful if for any reason you can not connect to mentioned services. By checking public IP directly inside your windows you can make sure that the issue for not being able to open some websites is not due to your public IP. In order to use this Windows feature, we will be checking our public IP using Windows PowerShell. To open Power Shell in Windows first press ⊞ WINDOWS + R to open the run dialog keyboard with windows and r markedInside run dialog type Powershell and press ENTER In the Powershell type in the following command and press ENTER
(Invoke-WebRequest -uri "http://ifconfig.me/ip").Content
When the command finishes you will see what is your public IP address, if you wish to know more about your connection type in and press ENTER:
Invoke-RestMethod -Uri ('https://ipinfo.io/')
This command will provide you with further information like city, region, country, and others.
Read More
How to always run the app in admin mode in W11
Each time you open an application inside your Windows 11 operating system, it is opened with standard privileges. Now, please note that your account privileges and application privileges are two different things, you might be the administrator of the system but when you open the app, it still opens with standard privilege. admin privilegesMost of the time running applications with typical settings is fine but from time to time we might have some applications that will require running with administrator privilege in order to work properly. In this case, it is very easy to do it, you just right-click and choose run as administrator. Although a very easy solution, it can be quite annoying if running the app is on a daily basis or even more times per day. If this is the case then right-clicking and choosing to run as administrator can be a daunting task, sometimes you can even forget to run it like this in heat of work and some unforeseen consequences might occur. Luckily there is an easy hack so you can open the chosen application each time as an administrator with a simple double click each time.

Setting application to run as administrator always

  1. Locate application executable file
  2. Right-click on in and choose properties
  3. Click on the Compatibility tab
  4. Check the box next to Run this Program as an Administrator
  5. Click on Apply
  6. Click on OK
From now on each time you open an application normally with a double click, it will be opened as administrator privileges.
Read More
A Quick Guide to Resolving IRQL_NOT_LESS_OR_EQUAL Error

IRQL_NOT_LESS_OR_EQUAL - What is it?

IRQL_NOT_LESS_OR_EQUAL error is a type of blue screen of death (BSoD) error. It is a typical Windows PC error that occurs even in the latest Windows versions. The IRQL_NOT_LESS_OR_EQUAL error occurs on the computer screen when a memory address triggers unauthorized access. This leads to the suspension of your login session. The computer screen turns blue.

Solution

Restoro box imageError Causes

IRQL_NOT_LESS_OR_EQUAL error occurs due to several reasons. However, the most common causes for this error code include:
  • Incompatible device drivers
  • The poor device driver installation
  • Faulty hardware
  • Disk fragmentation
  • Registry issues
  • Viruses and malware attack
Blue screen of death error codes like IRQL_NOT_LESS_OR_EQUAL is critical. If not resolved timely, this error code can pose serious threats to your PC. It can lead to system crash and failure, due to which you can also lose your valuable data stored in your system. How to Fix IRQL_NOT_LESS_OR_EQUAL Error Code?

Further Information and Manual Repair

Here are some of the best and easy DIY methods to resolve this error code on your PC:

1. Roll Back Drivers

If the underlying cause of IRQL_NOT_LESS_OR_EQUAL error is poor driver installation, then try this method to resolve the issue. This can be done by simply clicking the start menu. Once you click on it, go to the control panel, then double click the system icon and locate the System Properties window. After that, click the hardware tab and then the device manager button. Now locate the device you recently installed. Double click on the recently installed device driver, click the driver tab, and then the rollback driver button. This will take a while, so wait for the process to finish.  After that, reboot the system.

2. Run Hardware Diagnostic

The IRQL error may also be triggered by faulty hardware. To identify which hardware is causing the error to pop up, you will have to run a hardware diagnostic.
  • For this, go to the start menu, type Memory Diagnostic in the search bar.
  • Now access this tool and click on Diagnose your memory problems. As you click it, it will ask you to perform the check by either restarting the PC immediately or on the next restart.
  • Select the immediate one to get going. The system will carry a scan on the memory and show you the list of problematic errors detected during the scan. To resolve this error then all you have to do is replace the piece of faulty hardware.
Nonetheless, if no faulty hardware is detected, this means the error is related to memory. If so, try method 3 to resolve.

3. Disable Memory Caching

To fix the IRQL_NOT_LESS_OR_EQUAL error, try disabling the memory caching option. This is called BIOS memory caching. This can be done by restarting your PC and pressing the BIOS setup keys to enter the settings screen. Mostly it is an F2 key, however, it may be different in some computers as the motherboards of different makes have their own respective keys. Once you enter the BIOS settings look for options stating memory settings. Access these options and disable the memory caching feature.

4. Scan your PC for Malware

As mentioned above this error message can also result due to the intrusion of malicious software like malware, viruses, and spyware. To detect and remove them from your PC, download an antivirus and perform a system scan. Remove the detected viruses and malware to resolve. Please note, antivirus installation may lower the speed of your PC.

5.  Repair Registry and Fragmented Disk

Due to poor PC maintenance, you may experience registry issues. The registry stores all the activities performed on the PC including the unnecessary pieces of information like junk files, internet history, temporary files, cookies, and other flies. Such files take up a lot of disk space. When there is not much space on the storage device, the new data is saved in fragments. This is called disk fragmentation. When this file becomes fragmented it takes time to rearrange the data and reunite it to run the fragmented file on your PC. If not resolved, this leads to registry issues and thereby generating various PC error codes including IRQL_NOT_LESS_OR_EQUAL errors. The best way to clean the registry and repair the fragmented disk is to download Restoro. This is an advanced and multi-functional PC Fixer. It is embedded with multiple system repair utilities including a powerful registry cleaner that detects all registry issues in seconds, removes and wipes out unnecessary files cluttering the registry, cleans and repairs the registry and the damaged files. Other utilities include an antivirus that detects privacy errors and all types of malicious software infecting your system. It also functions as a system optimizer which means by running this software on your PC you won’t be compromising on your system’s performance. The system optimizer utility boosts the speed of your PC. This tool is safe and efficient. It has a user-friendly interface and is compatible with all Windows versions. Click here to download Restoro and resolve the IRQL_NOT_LESS_OR_EQUAL error code right away.
Read More
1 2 3 171
Logo
Copyright © 2023, ErrorTools. All Rights Reserved
Trademark: Microsoft Windows logos are registered trademarks of Microsoft. Disclaimer: ErrorTools.com is not affiliated with Microsoft, nor claims direct affiliation.
The information on this page is provided for information purposes only.
DMCA.com Protection Status