Advanced then down to the Security section, a" /> Advanced then down to the Security section, a" /> Advanced then down to the Security section, a"/>

Can i use C# to automatic tick the Internet Option > Advanced setting > Security > "Use TLS 1.2"

192 views Asked by At

Can we write a C# code to automatic tick "Use TLS 1.2"?

This is manual step:- Go into Internet Options > Advanced then down to the Security section, and tick the box for "Use TLS 1.2".

Is there any way to tick it programmatically in C#.

2

There are 2 answers

0
Prasad bobade On

Use UI Automation Test Library from microsoft. It's used for testing purpose but it can work here. https://learn.microsoft.com/en-us/windows/desktop/winauto/ui-automation-test-library

0
xdtTransform On

Most of Internet option are Reg key. You can simply modify them with win32 or executing them in a command shell.

The key is specified in this MSDN article 1. and 2

Now either "How to modify registery key in C#" or "How to execute cmd command in c#".