; SWITCH.INF for Windows NT Remote Access Service
; Copyright 1995 Microsoft Corporation

; You should read all of the comments in this file before you
; activate a script. Complete information about using this file
; is available in RASPHONE.HLP.

;======================================================================

; This file provides sample log on scripts for connections to
; remote computers. Connections to Windows NT RAS computers do not use
; this file, so this file is used only for connecting to
; non-Microsoft computers.

; The most common use of scripts in this file will be as an after-
; dialing script that logs you on to a remote computer, such as an
; Internet connection provider. The scripts can also be run before you
; dial (if, for example, you dial through a modem pool). You activate
; the scripts in this file by editing the Security settings in the RAS
; entry for the remote computer.

; Since RAS reads this file only when it starts, if you modify a script
; in this file you must restart RAS if it is running.

; The Generic logon script can be activated and used immediately.
; The Logon for YourLoginHere script must be modified before use.
; The additional scripts in this file are provided as examples from
; which you can cut and paste relevant sections into your own scripts.
; The comment marker (;) in column one of the non-generic scripts must
; be removed before the scripts will work.

; These scripts assume the remote computer uses the words login and
; password followed by a colon (eg "login:" and "password:") to prompt
; you for your username and password.  If the remote computer prompts
; you with words other than login and password,  you must
; replace ogin: and assword: in the scripts below with the exact
; text the remote computer uses. Note: The text in the script should not
; include the first few letters because the remote computer may respond with
; <Password> or <password>.

;==============================================================

[Generic login]

; This script will automate many logons when the remote computer
; prompts only for login (username) and password. This script requires
; Windows NT 3.51 or later.
;
; The Authenticate Using Current User Name and Password check box
; must be cleared when using this script. When you first dial this
; entry, the RAS Authentication window will prompt for your username
; and password. The username and password entered in the
; RAS Authentication window is used by the <username> and <password>
; macros in this script. By requiring the username and password on
; initial dial, this script is secure.

; If you are not concerned about password security, modify then use
; the Login for YourLoginHere. If you are able to use that script,
; you will never have to type in a username and password.

; See RASPHONE.HLP for complete information about scripts.


; Start communication with remote computer by sending COMMAND=

      COMMAND=


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your login name. If the remote
; computer prompts you with a word other than login you must
; replace ogin: in the line below with the exact text the
; remote computer uses.

      OK=<match>"ogin:"
      LOOP=<ignore>


; Provide the login name typed in the RAS Authentication window.

      COMMAND=<username><cr>


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your password. If the remote
; computer prompts you with a word other than password you must
; replace assword: in the line below with the exact text the
; remote computer uses.

      OK=<match>"assword:"
      LOOP=<ignore>


; Give the password typed in the RAS Authentication window.

      COMMAND=<password><cr>


; Ignore the final responses from the computer.

      OK=<ignore>


; =====================================================================
; ADDITIONAL EXAMPLE SECTION  ***

; The additional scripts in this file are provided as examples from
; which you can cut and paste relevant sections into your own scripts.
; The comment marker (;) in column one must be removed before the
; scripts will work.

; These scripts assume that the remote computer uses the words login and
; password followed by a colon (e.g. "login:" and "password:") to prompt
; you for your username and password.  If the remote computer prompts
; you with words other than login and password,  you must
; replace ogin: and assword: in the scripts below with the exact
; text the remote computer uses. Note: The text in the script should not
; include the first few letters because the remote computer may respond with
; <Password> or <password>.

; =====================================================================

;[Login for YourLoginHere]

; Before using this script you MUST replace YourLoginHere in the
; section header above and in the script below with your actual
; login name (username). You MUST replace YourPasswordHere in the script
; with your actual password. Ensure you use the correct upper and lower
; case letters, since many remote computers are case-sensitive.
; Also note, since RAS reads this file only when it starts, if you modify
; a script in this file you must restart RAS if it is running.

; This script can be especially useful for automatic RAS connections
; created with batch files using the RASDIAL or RASPHONE commands.
; When these batch files are added to the Startup group in
; Program Manager, you can have an automatic RAS connection when you
; start your computer.

; This is not a secure script because your username and password are
; stored in clear-text in this script. If you are able to use this
; script, you will never have to type in a username and password for
; that entry.

; The Authenticate Using Current User Name and Password check box should
; be checked when using this script, although the username and
; password you type below will be used, not your current logged on
; username and password.

; See RASPHONE.HLP for complete information about scripts.


; Start communication with remote computer by sending COMMAND=

;      COMMAND=


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your login name. If the remote
; computer prompts you with a word other than login you must
; replace ogin: in the line below with the exact text the
; remote computer uses.

;      OK=<match>"ogin:"
;      LOOP=<ignore>


; You must replace YourLoginHere in the line below
; with your actual login.

;      COMMAND=YourLoginHere<cr>


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your password. If the remote
; computer prompts you with a word other than password you must
; replace assword: in the line below with the exact text the
; remote computer uses.

;      OK=<match>"assword:"
;      LOOP=<ignore>


; You must replace YourPasswordHere in the line below
; with your actual password.

;      COMMAND=YourPasswordHere<cr>


; Ignore the final responses from the computer.

;      OK=<ignore>

;======================================================================
; [Sample login]
; This sample script is the same as the script above, but the variables
; YourLoginHere and YourPasswordHere have been replaced with an actual
; login and password.
;

; Start communication with remote computer by sending COMMAND=

;      COMMAND=


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your login name.

;      OK=<match>"ogin:"
;      LOOP=<ignore>


; Provide login name.

;      COMMAND=MariaG<cr>


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your password.

;      OK=<match>"assword:"
;      LOOP=<ignore>


; Provide password.

;      COMMAND=mUs3naB<cr>


; Ignore the final responses from the computer.

;      OK=<ignore>

;======================================================================

; [Sample SLIP login]

; Because SLIP connection logon sequences vary widely, it is difficult
; to provide even a generic version for you to use. The following script
; was used to connect to an actual SLIP provider.

;  Start communication with remote computer by sending COMMAND=
;      COMMAND=


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your login name. If the remote
; computer prompts you with a word other than login you must
; replace ogin: in the line below with the exact text the
; remote computer uses.

;     OK=<match>"ogin:"
;     LOOP=<ignore>


; You must replace YourLoginHere in the line below
; with your actual login.

;      COMMAND=YourLoginHere<cr>


; The following two lines cause RAS to ignore all responses
; until the remote computer requests your password. If the remote
; computer prompts you with a word other than password you must
; replace assword: in the line below with the exact text the
; remote computer uses.

;      OK=<match>"assword:"
;      LOOP=<ignore>


; You must replace YourPasswordHere in the line below
; with your actual password.

;      COMMAND=YourPasswordHere<cr>


; Provide 4 carriage returns to ignore 4 questions.
;    COMMAND=<cr>
;    COMMAND=<cr>
;    COMMAND=<cr>
;    COMMAND=<cr>

; Wait for Home prompt.
;    COMMAND=
;    OK=<match>"Home"
;    LOOP=<ignore>

; Request SLIP connection.
;   COMMAND=SLIP<cr>

; At this point the script successfully ends and the SLIP Login Terminal
; window appears. You would enter the IP address provided by the remote
; computer (in the SLIP Login Terminal window) in the IP Address box and
; press the Done button.
