Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Script to Import Cookies

$
0
0

Hello,

I work in a school environment and we configured our FW to only allow strict searching.  Unfortunately, all the students and faculty have to manually go to each search providers site (Google, Yahoo, Bing) and enable SafeSearch.  This has to be done for IE only, since I found methods to do this for Firefox, and Chrome.  I found that if I delete all of the cookies in the Roaming\Cookies folder, then I can import cookies that I made on a different computer with SafeSearch enabled for all 3 providers.  This is done by running the command:

rundll32 C:\Windows\system32\ieframe.dll,ImportCookieFileByProcess  \\path to file\cookies.txt

This works on Windows 7 computers without UAC enabled.  All of my Windows 10 computers and Windows 7 with UAC enabled computers fail when I run this.  From what I read, rundll32 does not run in low privileges.  The cookies are supposed to be imported into the Cookies\Low or InetCookies\Low folders.  Is it possible to call IEFrame.dll in vb and the function, "ImportCookieFileByProcess"?  If not, then does anybody know how I can import cookies into the respective Low folder? 


Viewing all articles
Browse latest Browse all 3527

Trending Articles