If you are a network administrator then a login script can be a very useful tool. You will have provided your users with various network drives, printers and other resources and a script can ensure that they connect to them in a controlled manner. There will be consistency across all users and machines. If you need to change those letter and locations, you can do so in one location, meaning that you don't have to visit every machine.
Login scripts can be also be used on your local machine. This can be useful if you have multiple users on the machine and want them all to connect to the same resources. Otherwise it is a useful tool during testing but of little practical use once the script is complete.
Writing that first login script can be daunting if you haven't done it before. What this section will do is show you how to create a simple batch file login script. You can combine different elements to create quite sophisticated script that configure many parts of your environment for every user. Microsoft have even provided tools in the resource kit to allow you to complete different functions in the login script.
Login Scripts are basically Command Prompt commands, and therefore many of them can be tested by simply running them within a command prompt window. If you haven't used a command prompt before, then we have a getting started guide on dosprompt.info.
When you are looking at the examples and text in this section, information you should be entering in to your login script or commands you should choose from menus will be found in italics, or in a text box, not only for ease of reference but to make it simple to copy and paste the code in to your own script.
However when you copy script text in to your text editor, the formatting will not follow. Login scripts are basic text files.
There are lots of references on the Internet for login scripts and the commands that you can use in them. You can use almost any command line tools that are available in the operating system.
Microsoft Technet: http://www.microsoft.com/technet/
Script Database: http://www.myitforum.com/articles/11/view.asp?id=6298
Top of the Page - Home Page
Last Page Update: 28/03/2015
Copyright Sembee Ltd. 1998 - 2015.
Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.
All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.
Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.