Skip to content

Instantly share code, notes, and snippets.

cpu100

Block or report user

Report or block cpu100

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cpu100
cpu100 / ics-reset.ps1
Last active Feb 2, 2019
How to fix ICS (Windows Internet Connection Sharing) not working after reboot? Just reset ICS manually, or do it by PowerShell.
View ics-reset.ps1
# Reset Windows Internet Connection Sharing by PowerShell.
# PowerShell.exe -ExecutionPolicy Bypass C:\Path\to\ics-reset.ps1
$module = New-Object -ComObject HNetCfg.HNetShare
$list = New-Object System.Collections.Generic.List[System.Object]
You can’t perform that action at this time.