Solved Setting PPPOE connection to autodial on startup

mrapi

New Member
Messages
24
Hi,i'm using W8.1 and I try to setup autodial for a PPPOE connection on startup,I've use Task Scheduler
on action i've set: c:\Windows\System32\rasphone.exe
arguments: -d "connectionname"
trigger : At log on
When I start computer,PPPOE connection starts but doesn't auto connect,I have to press "Connect" button

so there is a problem setting it to autodial,need some help

3PZIR9C.png

thanks!
 

My Computer

System One

  • OS
    WINDOWS
You are doing it the hard way. Just set it up from Internet Options in the Control Panel. You can also set it up from the Network Connections folder.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
Hi,I don't understand what you mean "to set it up",I want to autodial/autoconnect it on system startup
You are doing it the hard way. Just set it up from Internet Options in the Control Panel. You can also set it up from the Network Connections folder.
 

My Computer

System One

  • OS
    WINDOWS
Hi,I don't understand what you mean "to set it up",I want to autodial/autoconnect it on system startup
You are doing it the hard way. Just set it up from Internet Options in the Control Panel. You can also set it up from the Network Connections folder.
I stated what you need to do to set up so that when Windows starts. Your PPPoE connection will automatically start.

Using a task is the incorrect way of doing it. Plus it is a hard way of doing something, that Microsoft's engineers have already made available through two options.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
Hi,my connection doesn't automatically start/dial,if there is an option I couldn't find it,please tell me how to set it up
thanks
 

My Computer

System One

  • OS
    WINDOWS

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
My connection is already set,it does connect manually,I only need to make it automatically connect,that is what i only need,I didn't find any option to make that,in W7 there is an option to not ask for user+password,I could not find it on W 8.1
thanks
Hi,my connection doesn't automatically start/dial,if there is an option I couldn't find it,please tell me how to set it up
thanks
Again, you have to do it either from Internet Options or Network & Sharing Center. Configure Windows 8 PPPoE Internet Settings
 

My Computer

System One

  • OS
    WINDOWS
Follow the instructions in that link. It has not changed in how setting up PPPoE connections are done. Everything is still the same as it was in previous editions.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
I've followed your link since you gave me and found nothing about automatically dial/auto connect,the tutorial ends with creating a shortcut and place it to desktop to be manually run..

Follow the instructions in that link. It has not changed in how setting up PPPoE connections are done. Everything is still the same as it was in previous editions.
 

My Computer

System One

  • OS
    WINDOWS
You do not place anything on the desktop. When you power on the computer, you can click on the network icon at the sign-on screen and activate the PPPoE connection. If you really want to make it easy. Just use a router for an Always on connection.

Windows 8 looks at PPPoE as a "Metered" connection. That is why it is not an always on connection. As I stated above. You can connect to the connection at log-in if you wish, if you use the Microsoft login. It is always on if you use a Local Workstation account.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
Solved using rasdial.exe "connectionname" username password

to hide the command windows:
1) I've downloaded and install AUTOIT ,put next script into a .au3 file:
PHP:
$file=@ScriptDir&"\pass.ini"
$section="REGISTER"

$conn=IniRead($file, $section, "connectionname", "")
$username=IniRead($file, $section, "username", "")
$password=IniRead($file, $section, "password", "")

   RunWait("rasdial.exe "&$conn&" "&$username&" "&$password, @WorkingDir, @SW_HIDE)
right click and chose compile,and I got the exe (in my case i got internet.exe,in task I've created in step 3 you'll see the path to it : <Command>E:\settings\internet\internet.exe</Command>)

2) in the same folder as exe I've created pass.ini file :
PHP:
[REGISTER]
connectionname="internet"
username="youruser"
password="yourpassword"

when need to change username or password,just edit .ini file

3) create task schedule as there
 
Last edited:

My Computer

System One

  • OS
    WINDOWS
Would you tell me, what is the exactly settings, in the Task Scheduler?
 

My Computer

System One

  • OS
    Windows 8.1 Pro 64
    Computer type
    PC/Desktop
This is exported task as xml,if you need additional info please let me know

Trigger: at log on
Action :start a program


Code:
<?xml version="1.0" encoding="UTF-16"?><Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2014-05-14T17:23:54.8568073</Date>
    <Author>user\john</Author>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger>
      <Enabled>true</Enabled>
      <UserId>user\john</UserId>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>user\john</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>LeastPrivilege</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>E:\settings\internet\internet.exe</Command>
    </Exec>
  </Actions>
</Task>
 

My Computer

System One

  • OS
    WINDOWS
Thanks, though i'm not sure how you did this
to hide the command windows I've compiled into a exe next AUTOIT script:

Code:

$file
=@ScriptDir&"\pass.ini"
$section="REGISTER"

$conn=IniRead($file, $section, "connectionname", "")
$username=IniRead($file, $section, "username", "")
$password=IniRead($file, $section, "password", "")

RunWait("rasdial.exe "&$conn&" "&$username&" "&$password, @WorkingDir, @SW_HIDE)


also create in the same folder pass.ini file :
Code:
[REGISTER]
connectionname="internet"
username="youruser"
password="yourpassword"




 

My Computer

System One

  • OS
    f
Thanks just a few more questions
For part 1, did you create the first script in the notepad, and save as .au3 ? what program do you open to compile it?
Solved using rasdial.exe "connectionname" username password

to hide the command windows:
1) I've downloaded and install AUTOIT ,put next script into a .au3 file:
PHP:
$file=@ScriptDir&"\pass.ini"
$section="REGISTER"

$conn=IniRead($file, $section, "connectionname", "")
$username=IniRead($file, $section, "username", "")
$password=IniRead($file, $section, "password", "")

   RunWait("rasdial.exe "&$conn&" "&$username&" "&$password, @WorkingDir, @SW_HIDE)
right click and chose compile,and I got the exe

2) in the same folder as exe I've created pass.ini file :
PHP:
[REGISTER]
connectionname="internet"
username="youruser"
password="yourpassword"

when need to change username or password,just edit .ini file

3) create task schedule as there
 

My Computer

System One

  • OS
    f
Nevermind i ddin't have the correct program installed for it to appear, you have the task set to open internet.exe i don't have that though, what do i need to do to fix that and allow it to autoconnect, rename it to rasphone?
 

My Computer

System One

  • OS
    f
no,don't rename it to rasphone,internet.exe is the file (exe) got when compile the script

Nevermind i ddin't have the correct program installed for it to appear, you have the task set to open internet.exe i don't have that though, what do i need to do to fix that and allow it to autoconnect, rename it to rasphone?
review step 1 when compile,I put a little info there
 

My Computer

System One

  • OS
    WINDOWS
for some reason when i click on internet exe nothing happens, and i have pass ini in the same folder ill let you know if i fix it
 

My Computer

System One

  • OS
    f
Back
Top