Q:

Make Kaspersky Endpoint Security Automatically trust C# Windows Forms application

I am developing a c# Windows Forms Application. Have created an setup.exe for it for installation. It installs fine and runs fine except it can not call simple http request. Kaspersky Endpoint Security 10(KES10) is blocking it. I tried ClickOnce security settings but they do not seem to work. Is there a way to automatically add it to trusted apps from C# via a library or cmd or something else? The app is harmless but it needs to be easily installed for end users without manualy configuring KES10. Is this possible?

A:

What I found is that i can use cmd to download the files I need. 
System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo();
            proc.FileName = @"C:\windows\system32\cmd.exe";
            proc.Arguments = "/c powershell -command \" & { iwr http://10.1.3.101/pages/getFile.php?filename="+fileName+ " -OutFile " + outputName + " }\"";
            System.Diagnostics.Process.Start(proc);

Cmd is not blocked so it works well and does the job. Hope this helps anybody in need.

