Change user authentication settings type from registry

I already change the value of the registry (using a c# windows application) (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1) "1A00" to "30000"(Hexa) equivalent to "Prompt for username and password ", and the change is done. but when i try to return the key value to the previous value "20000"(Hexa) equivalent to "Automatic logon only in intranet zone", in the settings table->customLevel->user authentication ->Logon the change is done , but when i open a new IE window the user authentication form is appear. Can some one help me ? thanks.

Answers


The proper way to set an URLAction is to use the SetZoneActionPolicy API. Writing the registry directly is not supported.

You shouldn't be doing this for the entire system if you want the behavior only in your application, however, you should instead implement an IInternetSecurityManager and attach it to your web browser control.

One of the problems you're likely having is that you're writing to the Lockdown Zones, which is very likely not what you really want.


Need Your Help

Accessing the Microsoft Graph API through JavaScript

office365 microsoft-graph

I am looking for a JavaScript example to play with the Microsoft Graph API. Although I have found https://github.com/OfficeDev/O365-Angular-Microsoft-Graph-Connect; I don't get it to work. Do I nee...

What causes iOS games to be added to a user's games connections?

ios facebook-graph-api unity3d connection prime31

I'm developing an iOS game in Unity using the Prime31 Social Networking plugin to handle Facebook integration. Everything seems to be working; posting to walls on behalf of the app, graph requests,...