1.    16 Jan 2017 #1
    Join Date : Oct 2016
    Posts : 16
    64 bits Windows 10 home

    How to set Internet options without UI ?


    Hello there !
    I try to configure Internet options (inetcpl.cpl) for my computer and I would like to do it with command lines, PS scripts or registry tweak... Actually, without any user interaction, only by scripting !

    Here is what I know :
    - it is possible to remove or block some tabs of the Internet options by writting in HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel (or HKLM for all users) [link] [link]
    - it is possible to open a specific tab of Internet options by running RunDll32.exe Shell32.dll,Control_RunDLL InetCpl.cpl [link]
    - it is also possible to clear navigation data by running RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess [link]

    Is there a way to set values, to check boxes, to uncheck boxes by running RunDll32.exe or by changing registry ? I don't know anything about DLLs and entrypoints.. So your help would be very useful ! Or maybe with a VBscript ?

    Here is what I would like to configure in the "General" tab :
    - change the home page (picture 1)
    - check "Delete history when exiting the browser" (picture 1)
    Then, in "settings" :
    - change the frequency and the value of Internet Temporary cache (picture 2)
    - change the duration of history saves (picture 3)

    Screenshots (french) :
    Picture 1 :
    Click image for larger version. 

Name:	Capture1.PNG 
Views:	24 
Size:	23.4 KB 
ID:	117390
    Picture 2 :
    Click image for larger version. 

Name:	Capture2.PNG 
Views:	24 
Size:	16.0 KB 
ID:	117391
    Picture 3 :
    Click image for larger version. 

Name:	Capture3.PNG 
Views:	24 
Size:	8.5 KB 
ID:	117392

    Thank you very much !

    Govi
      My ComputerSystem Spec
  2.    17 Jan 2017 #2
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,081
    Win 10 Pro (1703)

    Hello, I doubt anyone is going to write you a script, but I will give you just one possible hint if you want to explore this further yourself.

    Basic question- how do you find out what changes in the registry? (if that's where these changes are made).

    Get yourself a copy of a program called Regshot (free) - it lets you create a snapshot before and after and compare them. Thus you may be able to work out what changes. However, if the content of the key is extensive or obscure, even with this it can be very hard to do that.

    Another angle: Whilst Autohotkey (free scripting tool) allows manipulation of Windows dialogues such as you describe, success with that also depends on being able to adequately identify the elements of the dialogue with which you wish to interact.
      My ComputerSystem Spec
  3.    17 Jan 2017 #3
    Join Date : Oct 2016
    Posts : 16
    64 bits Windows 10 home
    Thread Starter

    Hello Dalchina,
    thank you for your answer. Indeed, I managed to do some stuff with RegShot, which is a very nice tool. Thank you !
    Here is what I acheived, maybe it can help people :

    Check the "Clear browsing history on exit" box :

    --> set 1 to HKCU\SOFTWARE\Microsoft\Internet Explorer\ClearBrowsingHistoryOnExit
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Privacy" /v "ClearBrowsingHistoryOnExit" /t REG_DWORD /d 0x00000001 /f

    Temporary Internet files (cache) : choose which frequency to check latest version

    --> This is controlled by the key : HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\SyncMode5
    Actually, setting the key in the registry doesn't change the checkbox, but I guess it changes anyway.
    - Each visit of the web page :
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v "SyncMode5" /t REG_DWORD /d 0x00000003 /f
    - Each launch of IE :
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v "SyncMode5" /t REG_DWORD /d 0x00000002 /f
    - Automatic :
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v "SyncMode5" /t REG_DWORD /d 0x00000004 /f
    - Never :
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v "SyncMode5" /t REG_DWORD /d 0x00000000 /f
    Maybe the value 1 stands for something..? Mystery.


    Space to use on the disk for cache :

    When I change the value, these 2 keys change :
    - HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\ContentLimit
    - HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content\CacheLimit
    The first is exactly the number we choose in the UI (in hexadecimal notation)
    I don't know what the second key does, but it changes and the value is coherent (when I change twice, the value is the same).
    Here is the code when we set to 8 Mo :
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache" /v "ContentLimit" /t REG_DWORD /d 0x00000008 /freg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /v "CacheLimit" /t REG_DWORD /d 0x00002000 /f
    Again, setting these keys in the registry database doesn't change the value displayed in the UI, but I guess it changes anyway.


    History : days to keep the visited webpages

    Here it is very simple, and setting the key changes the displayed value.
    The key : HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Url History\DaysToKeep
    To set 0 :
    Code:
    reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Url History" /v DaysToKeep /t REG_DWORD /d 0x00000000 /f

    Start page :
    This is the point I didn't suceed. I guess this key does something :
    HKCU\SOFTWARE\Microsoft\Internet Explorer\Main\Start Page
    but changing it doesn't directly change the startpage : it displays a message at IE launch : "An unknown program tries to set your start page to https://www.google.fr/. [change] [don't change]"
    Click image for larger version. 

Name:	Capture.PNG 
Views:	1 
Size:	3.4 KB 
ID:	117490
    Maybe there are other things to see in HKLM or in other keys (RegShot shows that several keys are affected, but it is difficult to make a logical link).


    Hope it can help !
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Slow internet speed from windows 10. Tried many fix options.
I apologize in advance for this being a long post. After trying many fix options, I decided to try a forum. I have internet through Xfinity. My internet plan is supposed to be hitting speeds of up to 200mbps (megaBITS not megaBYTES), yet on...
Network and Sharing
Solved internet options
what would happen if i uncheck this option to store caches and databases 102447
Network and Sharing
Internet Options
I am trying to open my browser with MSN Bing. In the old days before Windows10 you had the option of going to Internet Options, selecting the browser you wanted for your home page and that was it. All I get now is Google every time I open Internet...
Browsers and Email
Solved Internet Options
As long as IE11 is around I have access to internet options that I use. On Edge where is it located or is this feature changed to something else. Thanks
Browsers and Email
Question about internet options
Just a simple question.I had occasion to open internet options,in the internet properties it still has the option"Make Internet Explorer my default browser".Why is this if it no longer exists in Windows 10? ...
Browsers and Email
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:47.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums