Solved

Disabling IE7 Content Advisor Through Registry using a Script

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

9 Experts available now in Live!

Get 1:1 Help Now