Solved

script to allow cookie internet explorer

Posted on 2006-11-08
5
283 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now