PPPOE service name - Terminal / Command Prompt ( cmd ) / Powershell


  1. Posts : 3
    Windows 8.1
       #1

    PPPOE service name - Terminal / Command Prompt ( cmd ) / Powershell


    How can i set Broadband PPPOE service name using Command Prompt or PowerShell (Windows 8.1, build 9600)?
      My Computer

  2. Matthew Wai's Avatar
    Posts : 2,356
    Windows 10 Home 1903
       #2

    Do you mean the name "PPPoE" below?

    PPPOE service name -  Terminal / Command Prompt ( cmd ) / Powershell-pppoe-name.jpg

    I have used a CMD script to copy a backup "rasphone.pbk" file into "%ProgramData%\Microsoft\Network\Connections\Pbk\rasphone.pbk".
    The script has also set up an automatic PPPoE connection.
      My Computer

  3. EdTittel's Avatar
    Posts : 3,808
    Windows 10
       #3

    PPPoE means Point-to-Point-Protocol-over-Ethernet. It's the protocol used between a boundary device (like a router or modem) and a service provider's equipment. PPP runs at Layer 2, and sets up a conveyer belt for Layer 3 traffic to/from the pair of devices involved. See this definition at TechTarget for more info: What is PPPoE (Point-to-Point Protocol over Ethernet)? - Definition from WhatIs.com. Alas, though, I don't see any easy way to do what the OP wants, but I did find a related SuperUser.com post: windows - Configuring Network PPPOE Connection using cmd.exe - Super User (it, however, assumes you know the names of things already).
    --Ed--
      My Computers


  4. Posts : 3
    Windows 8.1
    Thread Starter
       #4

    I want to set service name "sm1" using cmd (not using richt click and "Properties"). My connection does not work without this service name and my menu "Properties" also does not work in control panel (right click and then "Properties" give me message "Unexpected error!"). This is picture from another computer to see what service name i want.

    PPPOE service name -  Terminal / Command Prompt ( cmd ) / Powershell-problem.jpg
      My Computer

  5. Matthew Wai's Avatar
    Posts : 2,356
    Windows 10 Home 1903
       #5

    1. Go to C:\ProgramData\Microsoft\Network\Connections\Pbk\
    2. Back up this file "rasphone.pbk".
    3. Click here to download "rasphone.zip" and extract the file "rasphone.pbk".
    4. Copy the file into C:\ProgramData\Microsoft\Network\Connections\Pbk\
    5. Run the following in an elevated Command Prompt:
    Net stop "Netman" & Net start "Netman"
    6. See whether your PPPoE connection works.
    7. If it does not work, upload your backup file "rasphone.pbk" as an attachment.

    The attached "rasphone.pbk" contains the following line:

    PhoneNumber=sm1
    PPPOE service name -  Terminal / Command Prompt ( cmd ) / Powershell Attached Files
      My Computer


  6. Posts : 3
    Windows 8.1
    Thread Starter
       #6

    Matthew Wai, thank you. It works. Close topic.
      My Computer


  7. Matthew Wai's Avatar
    Posts : 2,356
    Windows 10 Home 1903
       #7

    Next time when you want to change the service name, connection name, or other settings, just run the following command:

    Notepad %ProgramData%\Microsoft\Network\Connections\Pbk\rasphone.pbk

    FYI, the rasphone.pbk that has solved your problem was copied from my Windows PE. You actually don't need "Network and Sharing Center" and "Network & Internet" to set up a PPPoE connection, which can be set up by a script.

    PS Thanks for the rep!
      My Computer

  8. EdTittel's Avatar
    Posts : 3,808
    Windows 10
       #8

    Good job, @Matthew Wai. I learned something, too. Thanks!
    --Ed--
      My Computers


 

Related Threads
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:01.
Find Us




Windows 10 Forums