?
Solved

script to allow cookie internet explorer

Posted on 2006-11-08
5
Medium Priority
?
330 Views
Last Modified: 2010-04-16
is it possible to set setting in internet explorer 6.0 sp2 to allow cookie for certain websites with a visual basic script? this will be done to more than 100 computers that have windows xp sp2 if possible. any comment will greatly be appreciated.
0
Comment
Question by:hherrera
[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
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
deadite earned 300 total points
ID: 17902842
Create a file named "Cookies.reg"  then copy and paste the following into it:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\P3P\History\website.com]
@=dword:00000001



Now, replace "website.com" with the site you want (your probably have to keep the www and http off for it to work).  You can also use an IP instead of the domain name.

The problem with using a vbscript is, this is an individual user setting.  You'll need to give the file to each user to run, or else run it as a log on script.
0
 
LVL 8

Expert Comment

by:deadite
ID: 17902850
Assuming you are on a windows Domain and have domain admin access, here are some simple instructions for login scripts:

http://www.computerperformance.co.uk/Logon/logon_script_assign.htm
0
 

Author Comment

by:hherrera
ID: 17902882
thank you, that is what I needed, just one more question, when I make the cookies.reg the logon script, will the users get the question of "Are you sure you want to add the information in ......registry?" question?
0
 
LVL 8

Expert Comment

by:deadite
ID: 17903422
I'm not sure, I never tested using a reg as a logon script.  Try using this as a "login.bat"... I think it'll work (havn't tested though)

@echo off
REGEDIT /S cookies.reg
0
 

Author Comment

by:hherrera
ID: 17907060
got it, this is the command:
regedit.exe /s path of .reg file
thanks again, very helpful comments.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

719 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