Enable RRAS LAN Routing via Powershell

On a fresh install of windows 2012 R2 if I run the following:

Install-WindowsFeature -Name "Routing"
Install-WindowsFeature -Name "RSAT-RemoteAccess-Powershell"

Add-BgpRouter ...

I receive the error: LAN Routing not configured. Please ensure RasRoutingProtocols role services is installed and Lan Routing is configured.

This is expected and via the GUI I can enable RRAS and LAN routing. How can I enable RRAS and LAN routing with powershell only?

February 4th, 2015 1:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics