Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
6.1 KiB

  1. ; SWITCH.INF for Windows XP Network and Dial-up Connections/
  2. ; Remote Access Service
  3. ; Copyright (c) Microsoft Corporation. All rights reserved.
  4. ; You should read all of the comments in this file before you
  5. ; activate a script. Complete information about using this file
  6. ; is available in NETCFG.CHM.
  7. ; This file provides sample logon scripts for connections to
  8. ; remote computers. Connections to Windows NT RAS computers do not use
  9. ; this file, so this file is used only for connecting to
  10. ; non-Microsoft computers.
  11. ; SEE Network Connections now supports the Windows 95 scripting
  12. ; ALSO language which you may find easier to use than SWITCH.INF
  13. ; scripts. The language is described in NETCFG.CHM
  14. ; The most common use of scripts is an after-dialing script that
  15. ; logs you on to a remote computer, such as an Internet connection
  16. ; provider. You activate the scripts in this file by editing the
  17. ; Interactive logon and scripting settings in the Security properties
  18. ; of the Network Connection.
  19. ; The Generic logon script can be activated and used immediately.
  20. ; The additional scripts in this file are provided as examples from
  21. ; which you can cut and paste relevant sections into your own scripts.
  22. ; The comment marker (;) in column one of the non-generic scripts must
  23. ; be removed before the scripts will work.
  24. ; These scripts assume the remote computer uses the words login and
  25. ; password followed by a colon (eg "login:" and "password:") to prompt
  26. ; you for your username and password. If the remote computer prompts
  27. ; you with words other than login and password, you must
  28. ; replace ogin: and assword: in the scripts below with the exact
  29. ; text the remote computer uses. Note: The text in the script does not
  30. ; include the first few letters because the remote computer may respond
  31. ; with <Password> or <password>.
  32. ;==============================================================
  33. [Generic login]
  34. ; This script will automate many logons when the remote computer
  35. ; prompts only for login (username) and password. This script requires
  36. ; Windows NT 3.51 or later.
  37. ; When you first dial this entry, the "Connect" window will
  38. ; prompt for your username and password. The username and password
  39. ; entered on that window will be used by the <username> and <password>
  40. ; macros in this script. By requiring the username and password on
  41. ; initial dial, this script is secure.
  42. ; The "Use Windows password" check box on the Network Connections
  43. ; Security page must be cleared when using this script (cleared by
  44. ; default), because the clear password is not available in that case.
  45. ; Passwords saved with the "Save Password" checkbox will work.
  46. ; Each script is a sequence of alternating COMMANDs and responses.
  47. ; Here, we start communication with the remote computer by saying
  48. ; we have nothing to send before expecting a response.
  49. COMMAND=
  50. ; The following two lines cause Network Connections to ignore all responses
  51. ; until the remote computer requests your login name. If the remote
  52. ; computer prompts you with a word other than login you must
  53. ; replace ogin: in the line below with the exact text the
  54. ; remote computer uses.
  55. OK=<match>"ogin:"
  56. LOOP=<ignore>
  57. ; This is the equivalent of typing the same username you filled in
  58. ; on the "Connect" window or saved with the "Save password"
  59. ; checkbox.
  60. COMMAND=<username><cr>
  61. ; The following two lines cause Network Connections to ignore all
  62. ; responses until the remote computer requests your password. If
  63. ; the remote computer prompts you with a word other than password
  64. ; you must replace assword: in the line below with the exact text the
  65. ; remote computer uses.
  66. OK=<match>"assword:"
  67. LOOP=<ignore>
  68. ; This is the equivalent of typing the same password you filled in
  69. ; on the "Connect" window or saved with the "Save password"
  70. ; checkbox.
  71. COMMAND=<password><cr>
  72. ; Ignore the final responses from the computer.
  73. OK=<ignore>
  74. ; =====================================================================
  75. ; ADDITIONAL EXAMPLE SECTION
  76. ; This additional script is provided as an example from which you can
  77. ; cut and paste relevant sections into your own scripts. The comment
  78. ; marker (;) in column one must be removed before the ; script will
  79. ; work.
  80. ;======================================================================
  81. ; [Sample SLIP login]
  82. ; Because SLIP connection logon sequences vary widely, it is difficult
  83. ; to provide even a generic version for you to use. The following script
  84. ; was used to connect to an actual SLIP provider.
  85. ; Start communication with remote computer by sending COMMAND=
  86. ; COMMAND=
  87. ; The following two lines cause Network Connections to ignore all responses
  88. ; until the remote computer requests your login name. If the remote
  89. ; computer prompts you with a word other than login you must
  90. ; replace ogin: in the line below with the exact text the
  91. ; remote computer uses.
  92. ; OK=<match>"ogin:"
  93. ; LOOP=<ignore>
  94. ; You must replace YourLoginHere in the line below
  95. ; with your actual login.
  96. ; COMMAND=YourLoginHere<cr>
  97. ; The following two lines cause Network Connections to ignore all responses
  98. ; until the remote computer requests your password. If the remote
  99. ; computer prompts you with a word other than password you must
  100. ; replace assword: in the line below with the exact text the
  101. ; remote computer uses.
  102. ; OK=<match>"assword:"
  103. ; LOOP=<ignore>
  104. ; You must replace YourPasswordHere in the line below
  105. ; with your actual password.
  106. ; COMMAND=YourPasswordHere<cr>
  107. ; Provide 4 carriage returns to ignore 4 questions.
  108. ; COMMAND=<cr>
  109. ; COMMAND=<cr>
  110. ; COMMAND=<cr>
  111. ; COMMAND=<cr>
  112. ; Wait for Home prompt.
  113. ; COMMAND=
  114. ; OK=<match>"Home"
  115. ; LOOP=<ignore>
  116. ; Request SLIP connection.
  117. ; COMMAND=SLIP<cr>
  118. ; At this point the script successfully ends and the SLIP Login Terminal
  119. ; window appears. You would enter the IP address provided by the remote
  120. ; computer (in the SLIP Login Terminal window) in the IP Address box and
  121. ; press the Done button.