<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:Consolas;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:2100905263;
        mso-list-template-ids:-1146718990;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'>Hi Alexey!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'>Unfortunately, this piling of NLA profiles was solved in WireGuard for Windows 10 only. Windows 7 and 8 will create a new NLA entry each time WireGuard connects.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'>It's the same situation as if you would connect your laptop to 100 or more WiFis in the past.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'>You should address your question why so many NLA profiles crash Task Scheduler to Microsoft.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Simon<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-GB>From:</span></b><span lang=EN-GB> WireGuard <wireguard-bounces@lists.zx2c4.com> <b>On Behalf Of </b>Alexey Ivanov<br><b>Sent:</b> Saturday, November 16, 2019 11:24 PM<br><b>To:</b> wireguard@lists.zx2c4.com<br><b>Subject:</b> Wireguard for Windows breaks Task Scheduler<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-GB>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. <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB>This issue easy to reproduce: <o:p></o:p></span></p></div><ol start=1 type=1><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1'><span lang=EN-GB>Create wireguard's tunnels.<o:p></o:p></span></li><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1'><span lang=EN-GB>Connect tunnel, disconnect and remove it.<o:p></o:p></span></li><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1'><span lang=EN-GB>Repeat it multiple times.<o:p></o:p></span></li></ol><div><p class=MsoNormal><span lang=EN-GB>Windows registry will be full of wrong records of these non-existed network connections.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB>And now try to open Task Scheduler and click on "Create task..." it will crash with log:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><p class=MsoNormal><span lang=EN-GB>в 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) <o:p></o:p></span></p></div></blockquote><div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB>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">https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1</a> (Programatix message)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><p class=MsoNormal><span lang=EN-GB>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<o:p></o:p></span></p></div></blockquote><div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB>And it actually helps.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-GB>Can wireguard just properly handle this "issue" on his own and do not break Task Scheduler application?<o:p></o:p></span></p></div></div></div></div></body></html>