Solved

script to allow cookie internet explorer

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

792 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