Activate a logon script
Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 7
You can use this procedure to configure your dial-up connection to run a series of commands from a script.
The scripting capability for dial-up networking allows your computer to recognize requests for logon information, and supply it in a manner that the remote system requires. Windows includes a sample file named Switch.inf that contains information about how to modify it to do basic logon tasks.
This procedure activates the logon script to run the next time you start the connection. Every time Windows uses this connection, Windows runs the commands found in script file you select in the procedure below.
Any user account can be used to complete this procedure.
To activate a logon script
Right-click the dial-up connection on which you want to activate a script, and then click Properties.
On the Security tab, select the Run script check box.
To use a script file of your own, click Browse, and then locate the script you want to use.
Or, to use the default script Switch.inf, click Edit.
If you click Edit, and then open Switch.inf by using Notepad, immediately click Save As to resave the file with a different file name so as to preserve the default Switch.inf file.