Jump to content
Sign in to follow this  
fitzjay

How to create script to enable and disable control panel and internet options access

Recommended Posts

fitzjay

Hi, I want to create a script to enable and disable control panel and internet options access without going through all that gpedit.msc process but I don't have any idea on how to do that because am new to scripting. Can someone help me?

Share this post


Link to post
Share on other sites
rajeshontheweb

you can use the registry

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions]
"NoBrowserOptions"=dword:00000000

which is to be coded as

RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions", "NoBrowserOptions", "REG_DWORD", "00000000")

change the value to "00000001" to disable the remove the restriction..

to extend it further, check if the process iexplore.exe is running and notify user if it is running / kill the process using the code. because it better be reloaded after u alter the registry values...

<edit> this is available readily in various sources in the internet like this

Enable Internet Options

Disable Internet Options

of course scripting would allow u to extend it much further by checking if IE is running , etc

Edited by rajeshontheweb

Share this post


Link to post
Share on other sites
Juvigy

This is homework , right? What does they teach you in class?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×