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?

2
  • 1
    Welcome to ServerFault. We are not a script writing service. I'd try Set-NetIPInterface.
    – JosefZ
    Commented Mar 16, 2017 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. Commented Mar 17, 2017 at 9:15

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .