<p><a href="http://wincert.net/wp-content/uploads/2015/01/microsoft-windows2.jpg"><img class="alignnone size-full wp-image-518" src="http://wincert.net/wp-content/uploads/2015/01/microsoft-windows2.jpg" alt="microsoft-windows2,mail,live,pps,windows 8 keyboard shortcuts,dual boot,re-voltwindows 7 search,windows 7 administrator,folder,services,uninstall" width="720" height="340" /></a></p>
<p>If you use VBScript as a login script you might experience the following problem.</p>
<p>When user tries to login, login script is opened in Notepad rather than with Microsoft Windows Based Script Host.</p>
<p>The problem is in wrong setup for <b>.vbs</b> and <b>.vbe</b> file associations that are opening with Notepad application.</p>
<p>This is a per user setting and administrative privileges are needed to change this setting.</p>
<p>If needed add Administrative permission for this user and do the following:</p>
<p><b>Open Windows Explorer | Tools | File Types</b></p>
<p><b><img style="border-style: initial; border-color: initial;" src="http://wincert.net/wp-content/uploads/2012/02/folder_options_1.jpg" alt="" border="0" /><br />
</b></p>
<p>Navigate to <b>VBS</b> and <b>VBE</b> extenstion, select it and click <b>Change</b> (if the button is grey, you don&#8217;t have administrative permissions).</p>
<p><!--more--></p>
<p><strong><img style="border-style: initial; border-color: initial;" src="http://wincert.net/wp-content/uploads/2012/02/folder_options_2.jpg" alt="" border="0" /></strong></p>
<p>From the list select <b>Microsoft Windows Based Script Host</b> and click <b>OK</b>.</p>
<p><img src="http://wincert.net/wp-content/uploads/2012/02/folder_options_3.jpg" alt="" /></p>
<p>Let the user login again and the script should now work fine.</p>

vbs and vbe files open with Notepad
