1

Usually we use the setup wizard to congure "LAN Routing":

Step 1:

enter image description here

Step 2:

enter image description here

I want to do the same but whit powershell, but I can't find how.

Any ideas to do this automatically without using wizard?

  • 1
    Welcome to ServerFault. We are not a script writing service. I'd try Set-NetIPInterface. – JosefZ Mar 16 '17 at 21:03
  • Is it possible to do this without wizard? I'm tring to do "Get-NetAdapter | Set-NetIPInterface -Forwarding Enabled" but service can't start. – Frederic7391 Mar 17 '17 at 9:15
0

There are some details missing from the question, like what Windows version, but this feels like a reasonable question to ask (doesn't seem like it's asking for a script writing service, just how to get past the initial configuration), especially since you can run RRAS on Server Core and not have the wizard locally at all.

In any event, assuming Windows Server 2012 R2 or later, the initial setup is mentioned in passing at https://docs.microsoft.com/en-us/windows-server/remote/remote-access/remote-access#bkmk_rras, namely to use Install-RemoteAccess as more fomally documented at https://docs.microsoft.com/en-us/powershell/module/remoteaccess/install-remoteaccess?view=win10-ps, for example:

Install-RemoteAccess -VpnType RoutingOnly

The remoteaccess module is documented at https://docs.microsoft.com/en-us/powershell/module/remoteaccess/?view=win10-ps. The exact parameters to it will depend on what you want to do with RRAS, of course.

After that, it's up to you to do the rest of the configuration steps, as that seems out of scope of the original question.

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.