document.write('<div class="c" style="font-family: monospace;"><br />');
document.write('<span style="color: #993333;">Const</span> HKEY_CURRENT_USER = &amp;H80000001<br />');
document.write('<br />');
document.write('strComputer = <span style="color: #ff0000;">&quot;.&quot;</span><br />');
document.write('Set objRegistry = GetObject<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;winmgmts:<span style="color: #000099; font-weight: bold;">\\</span>&quot;</span> &amp; strComputer &amp; <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>oot<span style="color: #000099; font-weight: bold;">\d</span>efault:StdRegProv&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp;<br />');
document.write('strKeyPath = <span style="color: #ff0000;">&quot;SOFTWARE<span style="color: #000099; font-weight: bold;">\M</span>icrosoft<span style="color: #000099; font-weight: bold;">\W</span>indows<span style="color: #000099; font-weight: bold;">\C</span>urrentVersion<span style="color: #000099; font-weight: bold;">\I</span>nternet Settings&quot;</span><br />');
document.write('<br />');
document.write('strValueName = <span style="color: #ff0000;">&quot;ProxyEnable&quot;</span><br />');
document.write('dwValue = <span style="color: #cc66cc;">1</span><br />');
document.write('objRegistry.<span style="color: #202020;">SetDWORDValue</span> HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue<br />');
document.write('<br />');
document.write('<span style="color: #ff0000;">\'<br />');
document.write('\'</span> Place your company Proxy information here and Port number here<br />');
document.write('<span style="color: #ff0000;">\'<br />');
document.write('strValueName = &quot;ProxyServer&quot;<br />');
document.write('strValue = &quot;http=my.intranetproxy.proxy.com:8080;https=my.intranetproxy.proxy.com:8080;ftp=my.intranetproxy.proxy.com:8080;gopher=my.intranetproxy.proxy.com:8080;&quot;<br />');
document.write('<br />');
document.write('objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue<br />');
document.write('<br />');
document.write('\'</span><br />');
document.write('<span style="color: #ff0000;">\' This section will allow you to place a proxy override url seperate url\'</span>s be semi colons.<br />');
document.write('<span style="color: #ff0000;">\'<br />');
document.write('strValueName = &quot;ProxyOverride&quot;<br />');
document.write('strValue = &quot;&lt;local&gt;;*.my intranet . com&quot; &lt;-- change me<br />');
document.write('objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue<br />');
document.write('<br />');
document.write('strComputer = &quot;.&quot;<br />');
document.write('Set objReg = GetObject(&quot;winmgmts:<span style="color: #000099; font-weight: bold;">\\</span>&quot; &amp; strComputer &amp; &quot;<span style="color: #000099; font-weight: bold;">\r</span>oot<span style="color: #000099; font-weight: bold;">\d</span>efault:StdRegProv&quot;)<br />');
document.write('<br />');
document.write('\'</span><br />');
document.write('<span style="color: #ff0000;">\' this will allow you to change your start &quot;home page&quot; in IE Explorer<br />');
document.write('\'</span><br />');
document.write('strKeyPath = <span style="color: #ff0000;">&quot;SOFTWARE<span style="color: #000099; font-weight: bold;">\M</span>icrosoft<span style="color: #000099; font-weight: bold;">\I</span>nternet Explorer<span style="color: #000099; font-weight: bold;">\M</span>ain&quot;</span><br />');
document.write('ValueName = <span style="color: #ff0000;">&quot;Start Page&quot;</span><br />');
document.write('strValue = <span style="color: #ff0000;">&quot;http://myintranet.site.com&quot;</span> &lt;-- change me<br />');
document.write('objReg.<span style="color: #202020;">SetStringValue</span> HKEY_CURRENT_USER, strKeyPath, ValueName, strValue<br />');
document.write('<br />');
document.write('Dim WSHShell<br />');
document.write('Set WSHShell = Wscript.<span style="color: #202020;">CreateObject</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;WScript.Shell&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('bat_file = <span style="color: #ff0000;">&quot;%systemroot%<span style="color: #000099; font-weight: bold;">\s</span>ystem32<span style="color: #000099; font-weight: bold;">\&quot;</span><br />');
document.write('bat_file2 = &quot;</span>kill_ie.<span style="color: #202020;">bat</span> <span style="color: #ff0000;">&quot; &amp; mdl<br />');
document.write('cmd_bat = bat_file&amp;bat_file2<br />');
document.write('\'Info = MsgBox (&quot;</span>bat_file = <span style="color: #ff0000;">&quot; &amp; bat_file &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; cmd_bat &amp; &quot;</span><span style="color: #ff0000;">&quot;) <br />');
document.write('WshShell.Run cmd_bat,0,TRUE<br />');
document.write('&nbsp;</span></div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/804/1/" target="_blank">byteMyCode</a>.</div>');
