loginscripts.info
from Sembee Ltd.
UK MS Exchange Consultants
 

Page Last Updated: 24/04/2011
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


More Content from Sembee Ltd.
 
Resources on exchange.sembee.info Other Sites Sembee Ltd.
Microsoft Exchange 2003 Command Prompt Getting Started Guide Microsoft Exchange Consultancy
Microsoft Exchange 2007 Login Scripts Director's Blog
Microsoft Exchange 2010 MS Exchange Resources  
Microsoft Outlook Knowledge Base search  
Exchange Networking Tasks Recovery of MS Office content from Temp Files  
Amazon Store Troubleshoot the Automatic Updates Client  
  UK ISP Status Pages  
© Sembee Ltd. 1998 - 2011.
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 33 Scrivens Mead, Thatcham, Berkshire, RG19 4FQ.
Registered company number: 4704428. VAT Number GB 904 5603 43.