Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Help with a script to clear cache/cookies and set browser options

$
0
0

my scripting knowledge is very limited and deep diving into it isn't time friendly to complete this task, so I'm hoping someone here can assist. I've tried to compile a few versions from various sources, but bringing the various pieces together isn't working and there seems to be several things I'm 'missing'.

Goal - create a script that we can upload to our helpdesk forum for user self help and for our less technically inclined folks. This needs to work on various MS OSes - WinXP, Win7, Win8 with various versions of Explorer (fun with variables! yea)

The script should perform the following tasks -

1) Close all open browser instances (option for the user to choose the Browser - IE, Firefox, Chrome)

2) Clear temp internet files for the chosen browser

3) Clear cookies for the chosen browser

4) set browser options - for IE: disable pop-up blocker, change Mixed Content to Enable, Set Browser Tabbing to let IE choose how to handle. for Firefox: disable the pop-up blocker, disable Mixed Content setting (about:config -> active_content -> change flag from True to False). for Chrome: disable pop-up blocker, change Chrome launch target to add --allow-running-insecure-content

5) Re-Launch Browser

the items for setting/choosing the browser is a 'really nice to have' option, but I understand this may only work correctly for IE.

 Thank you in advance for your time and consideration



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>