Solved

Cannot Add VPN to Windows Server 2012 R2

Posted on 2014-12-30
4
293 Views
Last Modified: 2016-01-18
Hello, I'm trying to add VPN to a Windows Server 2012 R2.  I followed the steps outlined at the Microsoft page:

---------------------------------------

In the Initial Configuration Tasks window, under Customize This Server, click Add roles. By default, Initial Configuration Tasks starts automatically when you log on.

Open Server Manager by clicking Start, Administrative Tools, and then click Server Manager. Then, under Roles Summary, click Add roles.

In the Add Roles Wizard, do the following:
Click Next or click Select Server Roles.

In the list of server roles, select Network Policy and Access Services. Click Next twice.

In the list of role services, select Routing and Remote Access Services to select all the role services for Routing and Remote Access Services. You can also select individual server roles.

Proceed through the steps in the Add Roles Wizard to complete the installation.


---------------------------------------

The installation fails to complete.  The error message is:  "The request to add or remove features on the specified server failed The operation cannot be completed"

I searched this site, and found hints to remove registry entries to removing pending reboots. None of those existed.  I even tried this:  Dism /Online /Cleanup-Image /RestoreHealth, which did not solve the problem.

Any help on this is greatly appreciated.

Thanks,

-Ted
0
Comment
Question by:tedwill
  • 3
4 Comments
 
LVL 7

Accepted Solution

by:
Deadman earned 500 total points
ID: 40524110
This steps or configuration applies to Windows Server 2008

Follow this steps to complete VPN installation
http://www.thomasmaurer.ch/2014/01/how-to-install-vpn-on-windows-server-2012-r2/

http://technet.microsoft.com/en-us/library/dn383580.aspx
0
 

Author Comment

by:tedwill
ID: 40524198
I followed the steps, and ran into the same problem.  I later tried Powershell and was able to get the first line to work, but the second line failed with the same error:

Install-WindowsFeature RemoteAccess -IncludeManagementTools
Add-WindowsFeature -Name DirectAccess-VPN -IncludeManagementTools
0
 

Author Comment

by:tedwill
ID: 40524324
Here is the exact error:

PS C:\Users\administrator.PSLZCPA> Add-WindowsFeature -Name DirectAccess-VPN -IncludeManagementTools
Add-WindowsFeature : The request to add or remove features on the specified server failed.
The operation cannot be completed, because the server that you specified requires a restart.
At line:1 char:1
+ Add-WindowsFeature -Name DirectAccess-VPN -IncludeManagementTools
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : DeviceError: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exce
   ption
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_Reboot_Required,Microsoft.Windows.ServerManager.Commands.AddWindow
   sFeatureCommand

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   No             Failed         {}
0
 

Author Closing Comment

by:tedwill
ID: 41418414
Thanks!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My GPO's made for 2008 R2 servers were not allowing me to RDP into a new 2012 server by default.  That’s why I tried to allow RDP via Powershell, because I could log into a remote shell without further configuration. Below I will describe how I wen…
OfficeMate Freezes on login or does not load after login credentials are input.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question