If you use VBScript as a login script you might experience the following problem.
When user tries to login, login script is opened in Notepad rather than with Microsoft Windows Based Script Host.
The problem is in wrong setup for .vbs and .vbe file associations that are opening with Notepad application.
This is a per user setting and administrative privileges are needed to change this setting.
If needed add Administrative permission for this user and do the following:
Open Windows Explorer | Tools | File Types
Navigate to VBS and VBE extenstion, select it and click Change (if the button is grey, you don’t have administrative permissions).
From the list select Microsoft Windows Based Script Host and click OK.
Let the user login again and the script should now work fine.