Skip to content

Instantly share code, notes, and snippets.

@GaryLee
Created April 30, 2025 03:18
Show Gist options
  • Save GaryLee/3bd5a7ca47f98d189913f8179fac7a3d to your computer and use it in GitHub Desktop.
Save GaryLee/3bd5a7ca47f98d189913f8179fac7a3d to your computer and use it in GitHub Desktop.
How to enable ICS on windows permanently?
REM To enable ICS for interface. Set the ICS from following GUI:
REM Settings -> Network & Internet -> Open Network & Internet settings -> Change adapter options
REM -> Properties -> Sharing
REM -> Allow other network users to connect through this computer’s Internet connection.
REM After setting above option correctly, run following commands in the terminal with Administrator Privilege.
sc config SharedAccess start=auto
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\SharedAccess /v EnableRebootPersistConnection /t REG_DWORD /d 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment