<div dir="ltr">Im not exactly sure what wireguard doing to create virtual network adapters in windows, but it's more looks like it can't handle deletion of them properly. <br><div class="gmail_quote"><div dir="ltr"><div>This issue easy to reproduce: <br></div><ol><li>Create wireguard's tunnels.</li><li>Connect tunnel, disconnect and remove it.</li><li>Repeat it multiple times.</li></ol><div>Windows registry will be full of wrong records of these non-existed network connections.</div><div>And now try to open Task Scheduler and click on "Create task..." it will crash with log:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>в Microsoft.Windows.ManagementUI.CombinedControls.INetwork.GetName()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.UINetwork.GetUINetwork(INetwork network)<br>  в Microsoft.Windows.ManagementUI.CombinedControls.NetworkListManager.GetNetworkList()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.PopulateNetworkComboBox()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.InitializeConditions()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.InitializeView()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.Initialize(UITaskFolder folder, String taskName, String title, UserChoice userAction, BaseResultsControl inOwnerView, String inXmlText)<br>  в Microsoft.Windows.ManagementUI.CombinedControls.BaseResultsControl.CreateTask(UITaskFolder folder, String initialTaskName, String taskXml)<br>  в System.Windows.Forms.MenuItem.OnClick(EventArgs e)<br>  в System.Windows.Forms.MenuItem.MenuItemData.Execute()<br>  в System.Windows.Forms.Command.Invoke()<br>  в System.Windows.Forms.Control.WmCommand(Message& m)<br>  в System.Windows.Forms.Control.WndProc(Message& m)<br>  в System.Windows.Forms.ListView.WndProc(Message& m)<br>  в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) </div></blockquote><div><br></div><div>So ive googled solution <a href="https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1" target="_blank">https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1</a> (Programatix message)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>To resolve the problem,<br>    Run regedit<br>    Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList<br>    Delete everything under the following path,<br>        Nla->Cache<br>        Nla->IntranetEnabled<br>        Nla->Wireless<br>        Profiles<br>        Signatures->Managed<br>        Signatures->Unmanaged<br>    Reboot</div></blockquote><div><br></div><div>And it actually helps.</div><div>Can wireguard just properly handle this "issue" on his own and do not break Task Scheduler application?<br></div></div>
</div></div>