Although login scripts are useful in setting up drive mappings, search mappings, the user's printing environment, and displaying important messages and other commands, they can sometimes be a source of frustration when they don’t work as expected.
A majority of the problems that occur with login scripts are associated with mapping drives and capturing printers. Usually, these problems can be attributed to syntax and spelling errors. Correcting spelling errors and using variables in the right way resolve many problems. For example, you must put quotes around a login name in an IF..THEN statement.