How to always keep mobile hotspot On in Windows 10

When you enable the mobile hotspot on Windows 10, it will remain On so long as a device is connected to it. In some cases, if a device is connected but it isn’t actively using the connection, the hotspot will turn off. This means that you will have to turn it on again and then connect your device. Here’s how you can always keep mobile hotspot On.

There are two fixes that you can try. The first and simplest one may not be available if your Windows 10 isn’t up to date. The second will work on Windows 10 regardless of the version.

Turn off Power Saving

Open the Settings app and go to the Network & Internet group of settings. Select the Mobile Hotspot tab. Scroll down to the Power Saving section and you’ll see a switch called ‘When no devices are connected, automatically turn off mobile hotspot’. Turn it Off.

This option may not be present on older versions of Windows 10.

PowerShell Script

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.

Open a new Notepad file and paste the following in it.

Add-Type -AssemblyName System.Runtime.WindowsRuntime
$asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
Function Await($WinRtTask, $ResultType) {
$asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
$netTask = $asTask.Invoke($null, @($WinRtTask))
$netTask.Wait(-1) | Out-Null
$netTask.Result
}
Function AwaitAction($WinRtAction) {
$asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
$netTask = $asTask.Invoke($null, @($WinRtAction))
$netTask.Wait(-1) | Out-Null
}

$connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()
$tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile)
if ($tetheringManager.TetheringOperationalState -eq 1) 
{
"Hotspot is already On!"
}
else{
"Hotspot is off! Turning it on"
Await ($tetheringManager.StartTetheringAsync()) ([Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult])
}

Give it a name that tells you what the script is for, and save it with the PS1 file extension. Run this script and any time it detects that the mobile hotspot is off, it will turn it on. It’s up to you how you keep this script running. You can add it to the Start folder, or you can create a scheduled task that runs the script for you when you boot your system. You can also run it yourself when you boot to your desktop.

Why mobile hotspot turns off

The mobile hotspot turns off to save power. If your system is on battery power, keeping the mobile hotspot on when it isn’t in use will deplete the battery much more quickly. It’s the same case as it is for a mobile device. The mobile hotspot requires a signal to be transmitted and that requires additional power. Even when you’re connected to a power source, the hotspot turns off to limit how much power is being used.

Read How to always keep mobile hotspot On in Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How to change the icon for an external drive on Windows 10

An external hard drive often has a different icon than the internal drives. This is because the external drives provide their own icon and doesn’t rely on Windows 10 to give you one and these icons sometimes also highlight the manufacturer of the external drive. That said, you can always change the icon for an external drive to whatever you want.

Change external drive icon

Changing icons is easy. All you have to do is edit an INF file but you do need to find an icon to use. Any square image will do. It’s best to get a PNG if you can’t find an ICO file off the bat. You can use a web service like ICO Convert to convert the PNG to an ICO file.

Once you have the icon, open the external drive. You should see a file called Autorun.inf. If it isn’t there, you can create it yourself. Open a new Notepad file and enter the following in it. Change the name of the icon file to whatever your own icon file is called. Save the file with the INF extension and make sure it’s called Autorun.

[autorun]
icon=\hard_drive.ico

Next, move the icon file to the root of the external hard drive. That’s about it. You now need to restart your system. Restarting File Explorer won’t do the job and neither will the ejecting the external drive and connecting it again.

Once your system restarts, the external drive will show up with the new icon. The icon will appear everywhere the drive can be accessed e.g., in File Explorer, and the navigation pane in File Explorer.

This will not apply to all external drives. The icon is changed on a per-drive basis because the icon file has only been copied to the one drive. Likewise, the Autorun.inf file has only been modified for one drive.

What you can do is copy the Autorun.inf file and the icon file from the external drive that you modified earlier and copy it over to other external drives. The icon can be changed any time; you will have to update the name of the file in the Autorun.inf file, and you will of course need to copy the new icon to the root of the drive as well. Don’t forget to restart your system.

The new icon, and all its information is stored in the drive so whenever you connect it to a different system, the icon you set for it will be used. This setting isn’t just for your system but for all systems that the drive connects to.

Read How to change the icon for an external drive on Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How to delete the $GetCurrent folder on Windows 10

Residual problems with a Windows 10 update tend to drag on. You might discover something wrong with your installation months after you’ve upgraded. Windows 10, as of version 1903, now reserves storage space for updates. As it turns out, that’s not the only bit of space Windows 10 is taking up. If you did an in-place update of Windows 10, you might be left with residual files and folders and they can be quite large. The $GetCurrent folder can be quite big and you don’t need it after the update so here’s how you can delete the $GetCurrent folder.

Show hidden files

Open File Explorer and go to the View tab. Click the Option button and from the menu, select ‘Change folder and search options’.

In the Folder Options window, go to the View tab. Scroll through the options under Advanced settings, and select the ‘Show hidden files, folders, and drives’.

Delete $GetCurrent folder

Once you’ve set the hidden files and folders to be visible, visit your Windows drive and you will see a folder called $GetCurrent. This folder is very likely going to be large in size. Right-click it and select Properties from the context menu. The Size field on the General tab will tell you just how big the folder is.

Once the folder is visible, you can delete it. You will need admin rights but deleting it is really as simple as selecting the folder and tapping Delete. To get the full advantage of the free space, make sure you also remove the folder from the Recycle Bin.

The folder on my drive was over 3GB in size so it’s quite a bit of space saved. If you’re on an SSD, and that too one of a smaller capacity, that bit of space will count.

What is the $GetCurrent folder?

This folder contains set up files for the Windows update that you install. When you do an in-place update, Windows 10 first downloads the necessary files to your drive. On principle, the files should be deleted after the update but they’re not. What’s worse is that these files are kept in a  hidden folder so the average user isn’t going go looking for it. It’s rather frustrating that the folder isn’t cleaned up when Windows 10 detects you’re low on space.

Deleting the folder won’t have any sort of negative impact. The files aren’t something you will need again and even if you did, they’re files for updating Windows 10 and you can get them from Microsoft’s website.

Read How to delete the $GetCurrent folder on Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How to diagnose random device disconnected sound on Windows 10

Windows plays a specific sound when you disconnect hardware from your system. This sound plays if the hardware is properly stopped and disconnected, or if it is simply removed without warning. In some cases, e.g., with phones or external drives, you might see a message telling you a device was removed but that mostly happens when a device is properly disconnected. If you hear a random device disconnected sound on your PC, you’re likely wondering what’s disconnected.

A simple way to diagnose a random device disconnected sound on Windows 10 is to monitor your PC for connected devices. The easiest way to do this is to use USBDeview.

Random device disconnected sound

Download and run USBDeview. It has multiple columns and the one you need to keep an eye on is the ‘Connected’ column. Click the title of this column once and all disconnected devices will be sorted to the top. Click it one more time and all the connected devices will be sorted with connected devices at the top.

Let this app run. Minimize it or if you have another monitor, move the window there. Wait until you hear the sound again and then visit this app. The device that just disconnected will be at the top.

What now?

The device that is disconnecting may be an ‘internal’ one i.e., one that’s connected to an internal USB port. Those do exist and they’re normally used to connected hardware such as a webcam though it could be some other internal device. The app will tell you what it is.

The disconnection may be a result of different things. USB devices, if they tend to overdraw power, are shut down by the system. More precisely, the port is disconnected to avoid any serious hardware failure. It might be a one time thing but if it keeps happening and it’s always the same device, you should have someone look at it.

It’s possible there’s something wrong with the port, or the device. Make sure you’re not running any apps that change how power is managed on your system. If you’ve overclocked a component on your system, it might also be creating problems.

On an optimistic note, it’s possible the internal port has just come loose. It’s a simple fix and there isn’t much broken however, you will need to open up your system to fix it. If you’ve never tinkered with hardware, you will have to have a professional take a look at it.

Read How to diagnose random device disconnected sound on Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How to redirect a URL on Windows 10

Website redirection is something that websites do when they’ve migrated from one domain to another. It makes it easier for users who still visit the old domain to automatically be redirected to the new one. Of course, URL redirection isn’t just for websites. If you often accidentally visit the wrong domain, you can add a redirection at the OS level. To redirect a URL on Windows 10, you have to edit the hosts file. Here’s what you have to do.

Redirect a URL

The first thing you need to do is decide which URL or which domain you want to redirect to another. Let’s say you intend to visit Google but you accidentally keep visiting Reddit (it happens). This means you need to make it so that Reddit is redirected to Google.

To do that, you must first find the public IP of Google. Open Command Prompt and run the following command.

Syntax

ping domain-name

Example

ping www.google.com

The first line of output will show you the IP of the website in square brackets. Copy it.

Open the Start Menu and go to the apps’ list. Look for Notepad. Alternatively, use Windows Search to find it. Right-click the app and select ‘Run as administrator’ from the context menu.

Once Notepad is open, use the File>Open option on the menu bar and navigate to the following location.

C:\Windows\System32\drivers\etc

Open the file type dropdown and change it from text files to all files. Select the hosts file.

Once the hosts file is open, enter the following on a line of its own. Do not add a hash before it

Syntax

[Redirected IP address] [domain to redirect]

Example

216.58.207.4 www.reddit.com

The IP address is where the domain that follows it will be redirected to. The above example will redirect Reddit to Google.

Use the Ctrl+S keyboard shortcut to save the changes. Next, open Command Prompt with admin rights and run the following command.

ipconfig /flushdns

For good measure, close and re-open any browser you have open. Visit the website and it will be redirected to the IP address you entered. You can do this for as many websites as you want.

You can redirect as many URLs or domains you like and you can redirect them all to different URLs or to the same one. It is entirely up to you. To undo this change, remove the lines you add, flush the DNS again, and restart all browsers.

Sometimes even flushing the DNS doesn’t do the job. In that case, it’s a good idea to restart your system.

Read How to redirect a URL on Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter