3

I am trying to configure a VPN server completely using Powershell. I have completed everything except the last step: Granting a local user account Dial-In / Network Access Permissions so that this user can access the VPN.

Via GUI it's easy to complete this step with the "Computer Management" app in the user properties / Dial In / Network Access Permission:

enter image description here

But how can I do this via Powershell? As an alternative, how can I grant the user permission to use the VPN by setting a NPS Network Policy via command line?

1
+150

netsh seems to be able to do that.

netsh ras set user <username> permit
  • It does, indeed. Thank you for your help! – Adrian Grigore May 15 '19 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.