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?