Server 2012 Standard通过PowerShell使用设置导出特定的angular色

我最近试图将我的物理服务器转换为虚拟机。 特别是我的路由和远程访问服务器提供L2TP连接。 我已经能够这样做了,但是当我启动新的虚拟服务器(服务不启动,Nic的行为意外)时,angular色似乎从未正常工作。 所以不是试图从物理迁移到虚拟我只是做了一个新的虚拟机,并安装了Server 2012标准。 我不想手动重buildangular色,我想尝试在PowerShell中导出angular色和设置(仅适用于RRASangular色),并通过导入在新服务器上创build它。 我已经阅读了很多关于这个的教程,但它似乎只包括导出所有angular色和function。 在这种情况下,我真的只想导出我的路由和远程访问angular色的configuration。

我已经使用powershell来获取我的angular色列表,我知道如何导出它们,而不是远程访问。 这是我运行Get-WindowsFeature | where { $_.Installed -eq $True} | select displayname, nameGet-WindowsFeature | where { $_.Installed -eq $True} | select displayname, name Get-WindowsFeature | where { $_.Installed -eq $True} | select displayname, name

 DisplayName Name ----------- ---- File and Storage Services FileAndStorage-Services Storage Services Storage-Services Remote Access RemoteAccess DirectAccess and VPN (RAS) DirectAccess-VPN Web Server (IIS) Web-Server Web Server Web-WebServer Common HTTP Features Web-Common-Http Default Document Web-Default-Doc Directory Browsing Web-Dir-Browsing HTTP Errors Web-Http-Errors Static Content Web-Static-Content Health and Diagnostics Web-Health HTTP Logging Web-Http-Logging Performance Web-Performance Static Content Compression Web-Stat-Compression Security Web-Security Request Filtering Web-Filtering IP and Domain Restrictions Web-IP-Security Management Tools Web-Mgmt-Tools IIS Management Console Web-Mgmt-Console IIS Management Scripts and Tools Web-Scripting-Tools .NET Framework 4.5 Features NET-Framework-45-Features .NET Framework 4.5 NET-Framework-45-Core WCF Services NET-WCF-Services45 TCP Port Sharing NET-WCF-TCP-PortSharing45 Group Policy Management GPMC RAS Connection Manager Administration Kit (CMAK) CMAK Remote Server Administration Tools RSAT Role Administration Tools RSAT-Role-Tools Remote Access Management Tools RSAT-RemoteAccess Remote Access GUI and Command-Line Tools RSAT-RemoteAccess-Mgmt Remote Access module for Windows PowerShell RSAT-RemoteAccess-PowerShell SMB 1.0/CIFS File Sharing Support FS-SMB1 User Interfaces and Infrastructure User-Interfaces-Infra Graphical Management Tools and Infrastructure Server-Gui-Mgmt-Infra Server Graphical Shell Server-Gui-Shell Windows Internal Database Windows-Internal-Database Windows PowerShell PowerShellRoot Windows PowerShell 4.0 PowerShell Windows PowerShell ISE PowerShell-ISE WoW64 Support WoW64-Support 

导出和导入angular色不是问题,只是特别导出我需要的angular色,在这种情况下,我认为它是Remote AccessDirectAccess and VPN (RAS) ,也许是一些RSATangular色。

我正在以正确的方式进行吗? 有没有更好的方式来移动我的angular色和configuration? 我是一个PowerShell noob,并计划尽可能多的工作,而不是我习惯于(GUI)的方式。

您是否遵循了本指南: RRAS迁移:迁移路由和远程访问服务,特别是导入和Export-SmigServerSetting Powershell cmds