Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 10 / Internet Connection Sharing (ICS) Stops Working After Reboot in Windows 10

March 16, 2024

Internet Connection Sharing (ICS) Stops Working After Reboot in Windows 10

Internet Connection Sharing (ICS) service in Windows allows you to share Internet connection on your computer with other devices in your local network (via Wi-Fi or Ethernet). This allows all computers on the local network to access the Internet via an Internet connection on one computer (the computer may be connected to the Internet via a 5G/4G/LTE modem, direct cable connection via a second adapter, satellite connection, PPPoE, VPN, etc.). In this case, this Windows computer with two network interfaces connected to different networks will be a network gateway to other devices. ICS is a built-in Windows service that provides network connection sharing, address translation (NAT), and DHCP server functionality.

Also, you can use ICS to turn your Windows 10 device into a mobile hotspot.

You can enable shared access to a network connection in Windows in the properties of the network adapter (Sharing tab -> Internet Connection Sharing -> Allow other network users to connect through this computer’s Internet connection).

ICS sharing not working after windows 10 reboot

There is one unpleasant drawback in modern Windows 10 builds: if a computer with a shared network connection is restarted, other computers in a local LAN/Wi-Fi network lose Internet access.

The matter is that in modern Windows 10 builds Internet Connection Sharing service is disabled in 4 minutes and it does not restart automatically if no traffic goes through the shared connection. To restore shared Internet access, you need to uncheck and check the shared access option in the properties of the network adapter Windows is using to connect to the Internet.

To enable Internet Connection Sharing to start automatically after restarting Windows 10, enable a DWORD registry parameter EnableRebootPersistConnection with the value 1 in the reg key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SharedAccess.

It is easier to create a registry parameter using this PowerShell command:

New-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\SharedAccess -Name EnableRebootPersistConnection -Value 1 -PropertyType dword

EnableRebootPersistConnection registry key

Then set the automatic startup for the Internet Connection Sharing service (SharedAccess). You can change the startup type from Manual to Automatic in services.msc or using PowerShell:

Set-Service SharedAccess –startuptype automatic –passthru

Start the service:

Start-Service SharedAccess

internet connection sharing - configure service autostart on windows 10

You can also use the following PowerShell script to find all network connections with the shared Internet access on the computer, disable shared access, and re-enable it again.

$NetShareObject = New-Object -ComObject HNetCfg.HNetShare
$list = New-Object System.Collections.Generic.List[System.Object]
foreach( $connection in $NetShareObject.EnumEveryConnection ){
$config = $NetShareObject.INetSharingConfigurationForINetConnection( $connection )
if( $config.SharingEnabled -eq 1 ){
$type = $config.SharingConnectionType
$list.Add( @($type,$config) )
$config.DisableSharing( )
}
}
Start-Sleep 1
foreach( $array in $list ){
$array[1].EnableSharing($array[0])
}

You can run the PowerShell script automatically using Windows Task Scheduler at the computer startup.

8 comments
7
Facebook Twitter Google + Pinterest
PowerShellWindows 10
previous post
Fix: Windows Cannot Connect to a Shared Printer
next post
Checking Active Directory Domain Controller Health and Replication

Related Reading

How to Repair EFI/GPT Bootloader on Windows 10...

March 16, 2024

How to Repair Windows Boot Manager, BCD and...

March 11, 2024

PowerShell: Get Folder Size on Windows

April 2, 2024

Fix: The Computer Restarted Unexpectedly or Encountered an...

May 16, 2024

Fixing “Winload.efi is Missing or Contains Errors” in...

March 16, 2024

Network Computers are not Showing Up in Windows...

March 15, 2024

How to Download Offline Installer (APPX/MSIX) for Microsoft...

March 12, 2024

Windows Doesn’t Automatically Assign Drive Letters

March 15, 2024

8 comments

glnz September 21, 2021 - 10:42 am

Dear Woshub – Just now, connecting to this site, I got security warnings on my Firefox that your site is not secure. Apparently, you are only HTTP, not HTTPS. Is that correct?

Reply
admin September 21, 2021 - 10:44 am

It’s ok, at the moment we have not switched to https

Reply
Allan July 11, 2022 - 8:02 pm

Amazing….have been looking for a solution to this since upgrading to windows 10. Reg hack does the trick for me. Thanks so much

Reply
Joe December 8, 2022 - 5:24 am

You’re amazing, thanks. I’ve been trying to figure out how to disable then re-enable ICS through Powershell, but it’s been a real doozy. This worked perfectly.

Reply
Vit February 3, 2023 - 11:51 am

Much obliged. Worked like a charm on Win10 21H2 LTSC.

Reply
Andy February 24, 2023 - 8:40 am

Fantastic ! This is exactly what i need for a Qemu VM !
Rhank you for sharing !

Reply
Kamil November 8, 2023 - 12:54 pm

Finally, thanks!

Reply
neL February 11, 2025 - 2:17 pm

Thanks. But there’s another issue with Ics. for me at least. after a while when you just casually browse the web do you things etc like let’s say you’re watching youtube. Thumbnails doesn’t load. Same with x profile pictures and tweets with picture in them doesn’t load. so idk still figuring this out. hope someone can relate to me so that we can fix this annoying issue. best of luck

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
  • How to Download Offline Installer (APPX/MSIX) for Microsoft Store App
  • Configuring Port Forwarding in Windows
  • Start Menu or Taskbar Search Not Working in Windows 10/11
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • Adding Drivers into VMWare ESXi Installation Image
  • Tracking and Analyzing Remote Desktop Connection Logs in Windows
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top