Solved

Disabling IE7 Content Advisor Through Registry using a Script

Posted on 2008-10-22
3
641 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

Suggested Solutions

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…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 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

22 Experts available now in Live!

Get 1:1 Help Now