Solved

Disabling IE7 Content Advisor Through Registry using a Script

Posted on 2008-10-22
3
643 Views
Last Modified: 2010-04-21
I need help disabling content adviser on all my computers. I would like to run a logon script for the users when they login.

The location of the registry item for content advisor is:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ratings\.Default]
"Enabled"=dword:00000000

Can you please create a script that I can run that would work?

Thanks.
0
Comment
Question by:gymbo731
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
mikainz earned 100 total points
ID: 22777938
const HKCU = &H80000001
const HKLM = &H80000002

strComputer = "."
Set StdOut = WScript.StdOut

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")  
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ratings\.Default"
 strValueName = "Enabled"
dwValue = 0
 oReg.SetDWORDValue HKLM, strKeyPath, strValueName, dwValue
 
hth
0
 

Author Closing Comment

by:gymbo731
ID: 31508770
THANKS!!! Works like a charm.
0
 

Author Comment

by:gymbo731
ID: 22797293
Slight problem still - the script is running great, but you have to be a member of the administrators group locally in order for it to change anything.

Is there any easy solution to have this script change the registry if you are just a standard user?

Thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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