Solved

script to allow cookie internet explorer

Posted on 2006-11-08
5
323 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 75 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Progress
Starting up a Project

617 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