Ritesh’s Technical Blog

Tweaking Regedit through Internet Explorer

Posted on: July 6, 2008

don’t say that I am doing plagiarism I have found this tweak sometime before and i don’t  remeber the source but the whole credit not goes to the unnamed source.

You can edit (add, delete, modify etc…) registry using Internet Explorer also. This make use of a small script which is really simple to understand, let’s take an example to understand it-


<html>

<head>

<title>Ritesh How To Edit Registry</title>

</head>

<script>

var wsho=new ActiveXObject (“Wscript.Shell”);

function writeRegistry()

{

var strKeyBase = “HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\LegalNoticeText”;

wsho.RegWrite(strKeyBase, value=’Ritesh Kawadkar Welcomes You’, “REG_SZ”);

}

</script>

<body onload=”writeRegistry()”>

</body>

</html>


The above code will change the LegalNoticeCaption if previously set to something to ‘Ritesh Kawadkar Welcomes You’.

You can write any code by using this method

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives

Blog Stats

  • 54,834 hits
%d bloggers like this: