openziti / desktop-edge-win

Provides a Ziti client for Windows
Apache License 2.0
35 stars 13 forks source link

remove 'old' profiles and unmanaged entries #378

Closed dovholuknf closed 3 years ago

dovholuknf commented 3 years ago

Creating a tun using Wintun seems to leave behind a profile and an 'unmanaged' entry during removal...

Clean them up using:

$key="Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged\*"
Get-ItemProperty -Path $key | where {$_.FirstNetwork -match "ziti.*"} | Remove-Item

$key="Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\*"
Get-ItemProperty -Path $key | where {$_.ProfileName -match "Ziti.*"} | Remove-Item
hpfplane commented 2 years ago

Very good for windows 10/11!

hpfplane commented 2 years ago

$key="Microsoft.PowerShell.Core\Registry::HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged*" Get-ItemProperty -Path $key | where {$.FirstNetwork -match "网络.*"} | Remove-Item

$key="Microsoft.PowerShell.Core\Registry::HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles*" Get-ItemProperty -Path $key | where {$.ProfileName -match "网络.*"} | Remove-Item

hpfplane commented 2 years ago

Thank you very much!