Tweaking Regedit through Internet Explorer

Feb 24, 2009

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

0 comments:

Post a Comment

About Author

My photo
Working as an Automation Analyst, Ritesh is very passionate about developing tools and apps. His profile contains a long list of tools developed for Windows and apps for Android platform.