amset

.info
.co.uk - exchange consultancy
.net - internet based solutions

Broadband - Exchange
Login Scripts - Net Admin
Outlook - Windows Mobile
Windows

Contact - Advertise

AddThis Social Bookmark Button

Login Scripts

Getting Started

Creating the Initial File

Testing

Implementation

Basic Techniques

Mapping Network Drives

Connecting Printers

Section Labels

More Advanced
Techniques

Domain Group Membership For Drive and Printer Mapping 

Recording Script Results

Location Detection

Machine Identification

Operating System Detection

Limiting the Number of Logins

Registry Changes

Redirection of Internet Explorer Favourites

Checking for Existence
of a File or Directory

Getting Started - Initial Script File Creation

Before you can create your script, you need to create the initial file that will hold you commands.

All examples on this web site use notepad. It is simple and is available on all machines. You may want to use your preferred text editor to once you are comfortable with how scripts work. You should also ensure that "word wrap" is turned off as wrapping of commands can cause problems.

  1. Start Notepad - which creates a blank file.
  2. Ensure that "word wrap" is turned off ("Format" --> "Word Wrap")
  3. (Optional at this point) Enter some commands from the examples on this web site.
  4. Click "File" then "Save As".
  5. Change the "Save as type" to "All Files". This allows you to enter your own extension.
  6. (If you have other options, leave these alone.)
  7. (Optional) Create a new directory to store your login script in. This can be useful when you are working on scripts as you know where they are. Change to this newly created directory.
  8. Enter the filename "login.bat" and press save.

You now have a file that will run if you double click on it.

Editing the File

If you wish to edit it again, right click on the file and choose "Edit".

Entering paths

When you are writing paths to files or directories, it is always a good rule of thumb to enclose the path in quotes.
This is required if the path has spaces in it - for example when you are referencing "program files" but doesn't do any harm to use it for all paths and is a good habit to get in to.

For example:

"c:\program files\office"

instead of

c:\program files\office

Sponsored Links

Last Page Update:
17/04/2006

Back to the Top
Contact Us - Advertise on amset.info
Login Scripts Index - Home Page


Broadband - Exchange - Login Scripts - Network Admin - Outlook - Windows Mobile - Windows


© Amset IT Solutions Ltd. 1998 - 2008. All rights reserved. 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 on this site. This site is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.