4

I'm trying to automate the creation of a L2TP VPN server using PowerShell but I can't find any articles or cmdlets on how to disable PPTP inbound connections in RRAS using PowerShell. Below is a screenshot of the setting I'm trying to disable via PowerShell:

enter image description here

Additionally if there's a command to set the "Maximum Ports:" that would be useful as well.

I say Reinstate Monica
  • 3,132
  • 7
  • 28
  • 52
Jack
  • 43
  • 4

1 Answers1

2

Use netsh:

netsh ras set wanports device="WAN Miniport (PPTP)" rasinonly=disabled maxports=128
Mathias R. Jessen
  • 25,161
  • 4
  • 63
  • 95
  • Ah okay this work perfectly! I was assuming the option to disable this would be a RRAS PowerShell cmdlet. Thanks for your help Mathias! – Jack Jan 06 '17 at 21:53