Title: [2014.04.05] Autoamtically Connect to the Internet by PPPoE at Win7 Operate System [Print this page] author: 夢 time: 2014-4-5 12:56 Title: [2014.04.05] Autoamtically Connect to the Internet by PPPoE at Win7 Operate System
The Best method is useing the bash script (bat) to do the auto connection.
A guy had already wrote a script to his blog. We can use this script to arrive our request.
Step1
Because of I want to remote login the server and I want to automically connect the internet, I install the teamviewer to replace with the RDP
I ignore the installation steps of teamviewer, but please remember the setting of automatically to execute the teamviewer when the the computer enter the os.
Step2
If you don't cancel the password protection, you can't automatically execute the startup script when you restart or power on the computer
So, after installing the teamviewer, disable the login password of remote computer, actually, that is dangerous, please consider your situation and make your choice.
Step3
Copy the below script to a new test document and change the extension name to bat like 'autopppoe.bat', guys can consider the below picture to show and change the extension type of the file name in the win7/win server2008 os.
Substituting the PPPoE_Connection_name、PPPoE_Account and PPPoE_Password to appiciate as appropriate.
Step4
Cut the script to startup folder.
Then, remote restarting the os. If you find the signed in information auto show from teamviewer at the os right corner, it represent the auto connection script script indeed work fine.