Solved

Script to change IE settings

Posted on 2008-06-19
8
667 Views
Last Modified: 2012-05-05
Hi there

I need a batch file (script) that can change the cookies settings in Internet Explorer. It should enable the option "Override automatic cookie handling" and "Always allow session cookies" under the Advanced Privacy settings.
0
Comment
Question by:TIO-Solutions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 3

Expert Comment

by:cholmskov
ID: 21821472
Ok so far I have found out how to activate the Override Automatic Cookie Handling, it's done here.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

Just gotta modify the key called "PrivacyAdvanced" from 0 to 1

Im still trying to find the Always Allow, it don't seem to be in the same place.
0
 
LVL 3

Expert Comment

by:cholmskov
ID: 21821667
Im afraid im out of time to search more, I think the answer can be found here, but so far no luck.

http://support.microsoft.com/?kbid=182569
0
 

Author Comment

by:TIO-Solutions
ID: 21821730
I have been looking, but with no luck so far
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 38

Expert Comment

by:Shift-3
ID: 21822494
Wow, that is one abstruse KB article.

Through experimenting with Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) I was able to get the boxes checked using the .reg file below.  I tried it on two machines, but you will probably want to test it more extensively before mass-deploying it.


Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"PrivacyAdvanced"=dword:00000001
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"{AEBA21FA-782A-4A90-978D-B72164C80120}"=hex:1a,37,61,59,23,52,35,0c,7a,5f,20,\
  17,2f,1e,1a,19,0e,2b,01,73,13,37,13,12,14,1a,15,2a,4e,2c,08,0d,20,1b,28,18,\
  36,32
"{A8A88C49-5EB2-4990-A1A2-0876022C854F}"=hex:1a,37,61,59,23,52,35,0c,7a,5f,20,\
  17,2f,1e,1a,19,0e,2b,01,73,13,37,13,12,14,1a,15,2a,4e,2c,08,0d,20,1b,28,18,\
  36,32

Open in new window

0
 
LVL 38

Expert Comment

by:Shift-3
ID: 21822509
This .reg file reverses the settings.


Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"PrivacyAdvanced"=dword:00000000
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"{AEBA21FA-782A-4A90-978D-B72164C80120}"=hex:1a,37,61,59,23,52,35,0c,7a,5f,20,\
  17,2f,1e,1a,19,0e,2b,01,73,13,37,13,12,14,1a,15,2a
"{A8A88C49-5EB2-4990-A1A2-0876022C854F}"=hex:1a,37,61,59,23,52,35,0c,7a,5f,20,\
  17,2f,1e,1a,19,0e,2b,01,73,13,37,13,12,14,1a,15,2a

Open in new window

0
 

Author Comment

by:TIO-Solutions
ID: 21822906
So how do I write the batch file to automatically make the changes in my registry?
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 21823473
You can either import the .reg file with REGEDIT /S or use REG ADD lines as below.  Note that the REG command was first included in Windows XP, so if you have any 2000 clients you'll have to put a copy of REG.EXE in your script directory.


@echo off
setlocal
 
set bin=1a3761592352350c7a5f20172f1e1a190e2b017313371312141a152a4e2c080d201b28183632
 
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v PrivacyAdvanced /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v {AEBA21FA-782A-4A90-978D-B72164C80120} /t REG_BINARY /d %bin% /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v {A8A88C49-5EB2-4990-A1A2-0876022C854F} /t REG_BINARY /d %bin% /f

Open in new window

0
 

Author Comment

by:TIO-Solutions
ID: 21823553
Everything was working
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question