Jump to content

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


fitzjay
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...