Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Create PPTP VPN via command line?

Featured Replies

Hi all

Does anyone know if it's possible to create a PPTP VPN via a command line rather than using the New Connection Wizard?

I thought that NETSH might be the answer but I can't figure it out...

Any help greatly appreciated..

Regards

Paul

Create once the vpn connection by wizard and backup the .pbk file. After you can use command line :

Connect

rasdial NameOfConnection user pass /phonebook:file.pbk

Disconnect

rasdial NameOfConnection /disconnect

Sample .pbk file

[NameOfConnection]
ShowMonitorIconInTaskBar=0
IpPrioritizeRemote=0

MEDIA=rastapi
Port=VPN9-0
Device=Miniport réseau étendu (L2TP)

DEVICE=rastapi
PhoneNumber=ip or dns name

  • Author

Thank you both for your responses.

From the info provided by Sonic I now know that it's the contents of the .pbk file I need to create (I have about 30 VPNs I need to add and I didn't want to have to add them manually, so was hoping there was some kind of import I could do).

Is there a way of "importing" these details into my existing .pbk file? I've had a look at rasphone and rasdial but could not see an option to do this.

@cluberti

I was not aware of this tool but it will certainly come in use in the future :thumbup

Thanks again

Paul

You can add the content to your actual .pbk file with batch like "echo xxxx >>file.pbk"

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.