Link to home
Create AccountLog in
Avatar of Tessando
TessandoFlag for United States of America

asked on

Sanity Check for Installing single server Remote Desktop Services - I need to get the Remote Desktop Session Host Role Installed

I am having difficulty configuring a single server Remote Desktop Services (RDS) deployment on Windows Server 2019. In this use case, I've got a 50 pack of RDS User Cals I need to install. 


For the most part, I've followed some straight-forward directions I found for Windows Server 2016 [1]. These worked great in the past. 


Based on a previous 2k16 installation, I'm at the point where I need four Server Roles installed & 2 Server Features:

  • Remote Desktop Connection Broker
  • Remote Desktop Licensing 
  • Remote Desktop Session Host
  • Remote Desktop Web Access
  • (Feature) Remote Desktop Licensing Tool
  • (Feature) Remote Desktop Licensing Diagnostic Tool


I can get the first two installed, but the Remote Desktop Session Host fails every time I attempt to install it. I have attempted this through both "Server Manager" and  "Windows Admin Center". I also attempted via Powershell [2], but they all result in failure even after many a reboot.


I open to any and all suggestions to get the Remote Desktop Session Host Server Role installed on this Windows Server 2019 instance. 


Thanks in advance!



[1] https://www.slashadmin.co.uk/how-to-setup-a-single-server-rds-deployment-using-server-2016/


[2] Install-WindowsFeature Remote-Desktop-Services,RDS-Web-Access,RDS-RD-Server,RDS-Connection-Broker -IncludeManagementTools 

Avatar of arnold
arnold
Flag of United States of America image

What error do you get?
get-windowsfeature

If the servers was just updated or a prior attempt generated an error, you need to reboot the system before you can try installing.
If you went through the Graphical , server management to add a role/feature and it failed, you have to reboot.

Do you have the install media to use -source wim:d:\sources\install.wim[2] where [2] represents the type of your install 2019 core

You can use the dism
dism /get-imageinfo /imagename:d:\sources\install.wim

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/take-inventory-of-an-image-or-component-using-dism?view=windows-11
You need to use the index that corresponds to our installed OS. Core standard, Desktop Standard, OS CORE datacenter, os Desktop Datacenter

You also have to make the correct choices as to your setup.
Avatar of Tessando

ASKER

Thank you, Arnold. 


When I run the Powershell command

get-windowsfeature

Open in new window

It shows what is currently installed. For the section that I'm concerned about (focusing today only on Remote Desktop Session Host, I see the following):


User generated image

Before running this command, I got an error using the Server Manager -> Add Roles & Features:

User generated image

This is an Amazon Machine Image (AMI) and I have an Image that is before the attempted installation of these cals. I do not have the physical media.


My first was using the method of "Remote Desktop Services Installation" ->  Quick Start -> Session Based.


If I was to roll this back to the AMI before I started all this, what method would you recommend to install these CALs?


1. As the Quick Start way? or

2. As individual Roles and Services (e.g. Remote Desktop Connection Broker, Remote Desktop Licensing, etc).

3. Some other method


I have the 50 pack of CALs from an MSDN Subscription.


Thanks for your help.



Not sure you can setup an independent RDP host, and then join it into the farm.

Usually, you would only have one RDS licensing role.

You only install another, if you are decomissioning the old one and need the licenses transferred to the new one.

Do you already have one 2019 host with Gateway, Broker, licensing (session host)?

Setup?

The following is the direction to add a new RDS session host into that setup.

https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-scale-rdsh-farm

I'm attempting to setup a single server Remote Desktop Services (RDS) deployment, so I'm not attempting to join an existing Farm. 


>Do you already have one 2019 host with Gateway, Broker, licensing (session host)?


I do not. I have a Windows Server 2016 instance that is a single server Remote Desktop Services deployment. I'm attempting to replicate this on 2019.


That said, I did read somewhere that during the installation of the Remote Desktop Session Host that the Windows Firewall needs to be enabled in order for the OS to configure it properly. I was going to roll back to the pre-RDS installation attempt and enable the firewall before attempting another install. Would this have anything to do with it? 

You likely need the RDS licensing server and rds session host. If you want a single host setup.

you need to reboot the 2019 after attempts, you need the media to reference as the source to avoid having it error trying to pull the info via the internet.
Download the 2019 evaluation version to use as the source of the image install.wim

https://www.microsoft.com/en-us/evalcenter/download-windows-server-2019

you either mount the ISO as a drive or attach the iso to the VM as a CD/DVD. much depends on your environment, physical or virtual.

-source wim:[DriveLetter]:\sources\install.wim[n]

N:
2 Desktop standard 2019
4 Desktop Datacenter 2019

Re licensing, I think 2019 RDS needs its own, it does not accept 2016 RDS cals. If you have VlCS and purchased the 2016RDS and they updated via software assurance to 2019/2022 you're in luck.

if not, check with MS and likely buy the 2022 RDS client licenses as they will be backwards compatible.
https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-client-access-license

Thanks Arnold.


>You likely need the RDS licensing server and rds session host.

Yup, that's what I'm trying to install. I'm using another instance that I have as a stand-alone RDS instance as an example. 


>you need to reboot the 2019 after attempts, you need the media to reference as the source to avoid having it error trying to pull the info via the internet.

I have been religiously rebooting after each failed attempt, whether prompted to or not.


I've never had to use the software in the past. Do you even do this on AWS para-virtualized machines (since the OS is backed in)?


I am using 2019 CALs.


Besides the Event Viewer is there a place where I can find an actual error? I've lost days to something that takes YouTuber's 30 seconds! I appreciate the sanity checks along the way. 

I think you should be able to attach an ISO to present to the VM using the CD/DVD route.

I think the 2019 role addition it tries to get it via the internet, it is not part of the options installed, included in the SxS folder.

I think I ran into this, once any attempt feature addition, role addition, etc. kicks in, the subsequent attempts always error out.

you installed a broker role, which looks more towards a farm, multi-host time of a scenario.
Meaning it needs the gateway component, rds session host, etc.
RD-web is only if you plan on providing RDP type of access via a A web interface.

Consider removing the session broker
then try to install the RDS session host, see if you have better outcome.

>I think you should be able to attach an ISO to present to the VM using the CD/DVD route.


I was able to get the original Windows 2019 installation Media and it's attached to the running instance as a Drive (Volume). How do I get the Windows Server Manager to pull from that given drive? Otherwise is there another route to install RDS using the installation media directly?


Thanks again for the assistance.

You are trying to go through the Graphical Interface and have it refer to the media as the source?
I believe the use of powershell cmdlts with install-windowsfeature provides for presenting the -source wim:[driveketter]:\sources\install.wim[2] for standard OS as an example.

Ah, I'm getting closer and the location you mentioned for the WIM file is correct. That said, when I do the command "get-windowsfeature" I see the Name column showing the following, with the RDS-Connection-Broker installed:


User generated image


Suffice to say that I suspect the "Name" is what I enter into the Powershell Command. The next one I need is Remote Desktop Licensing, so that would be the name of "RDS-Licensing". 


When I enter this Powershell command:


install-windowsfeature RDS-Licensing -source wim:G:\sources\install.wim

Open in new window

I get the following error:


PS C:\Users\me> install-windowsfeature RDS-Licensing -source wim:G:\sources\install.wim
install-windowsfeature : The request to add or remove features on the specified server failed.get-windows
Installation of one or more roles, role services, or features failed.
The parameter is incorrect. Error: 0x80070057 
At line:1 char:1
+ install-windowsfeature RDS-Licensing -source wim:G:\sources\install.w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
owsFeatureCommand

Open in new window


Any idea what I'm pasting incorrectly? Shouldn't the name immediately proceed the "install-windowsfeature" invocation?


Thanks for your help & patience. 





you are missing the index on the install.wim[2] or install.wim:2

run
dism /get-imageinfo /imagename:g:\sources\install.wim

This should list the contents of image
1 is commonly the server 2019 Standard Core (non-graphical)
2 Server 2019 standard Desktop experience
3 server 2019 datacenter core (non-graphical)
4 Server 2019 Datacenter Desktop experience

you are missing the index from which type of OS it should get the package you want.

reboot
run powershel ise in elevated mode
run command in an elevated mode
run the dism to get image info/breakdown

in powershell, run get-windowsfeature -name *RDS* to make sure what you have installed.

once you see what you have
install-windowsfeature -name RSAT-RDS*,RDS-Licensing-UI,RDS-Licensing,RDS-RD-Server -source wim:G:\sources\install.wim:2 (guessing you are using standard 2019 desktop experience)


make sure you run the powershell in an administrative window whether it is using powershell ISE, or running powershell within an elevated cmd.exe window.

I found a different command that showed me the same outcome:


dism /Get-WimInfo /WimFile:G:\sources\install.wim

Open in new window

Of the four choices, I know this is Windows Server 2019 Datacenter so it makes sense to choose 3 or 4, based on what is displayed. 

I've attempted both for just the RDS-RD-Server as in:

install-windowsfeature -name RDS-RD-Server -source wim:G:\sources\install.wim:3 
or
install-windowsfeature -name RDS-RD-Server -source wim:G:\sources\install.wim:4

Open in new window

And I'm continuing to get errors for installation. 


User generated image


On a whim I attempted using choices ...\install.wim:1 and  ...\install.wim:2 & neither of them worked.


Any other ideas to try?


Thank you again for your patience and knowledge.

the difference between option 3 and option 4 only one of them is a graphical Desktop experience. Which mode did is the  OS installed

Since you want this server to function as an RDS, the index you should use is 4 for datacenter server 2019 Desktop Experience.


Are you opning powershell iSE as an administrator?
These commands need to be run elevated with Administrative rights.
try running Start-process powershell -verb runAs this will invoke the UAC and will open a new window with admin rights if you have the right permission, credentials of administrator.
Please post the text versus image, of the output get-windowsfeature -name *rds*

If you have something that is installed, that requires another components, i.e. broker, but you are not installing the gateway, but want other components, this might be why your is failing.


With windows 2019, once a command either through the server manager or powershell gets an error, you have to reboot the system to clear the status. it was quicker to reboot, then to look at what needs to be run to clear this fault state. In other circumstances, I may have looked at where the fault is marked and how to clear it.

>Are you opning powershell iSE as an administrator?

Yes. I've taken a screenshot of how I start it and placed it below.


>try running Start-process powershell -verb runAs this will invoke the UAC and will open a new window with admin rights if you have the right permission, credentials of administrator.

Perfect. This opened a new Administrator Window and inside of that new Administrator Window, here is the results of the command:


--------------------------------------->

PS C:\Users\me> install-windowsfeature -name RDS-RD-Server -source wim:G:\sources\install.wim:4

install-windowsfeature : The request to add or remove features on the specified server failed.

Installation of one or more roles, role services, or features failed.

The referenced assembly could not be found. Error: 0x80073701

At line:1 char:1

+ install-windowsfeature -name RDS-RD-Server -source wim:G:\sources\ins ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],

    Exception

    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind

   owsFeatureCommand


Success Restart Needed Exit Code      Feature Result

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

False   No             Failed         {}

<----------------------------------------------


I have restarted the computer each time I invoke these commands.


Thanks for the Sanity Check. 


User generated image





The error deals with windows update, is it configured?

is it currently updating? in the background?

Make sure the system is up to date.

https://social.technet.microsoft.com/Forums/systemcenter/en-US/1eb8c5c2-64bf-4d07-8020-dac902230688/addwindowsfeature-sometimes-fails-with-error-0x800f0902-the-operation-cannot-be-completed-because

Lets try this, make sure the system is up to date with ms updates.
Once that is done, rebooted and updates applied, lets get back to the addition of roles.

I do have the Windows Update Service running, but I manually ran updates and there were none pending or Available. 


Due to the RDS not installing, I restarted for good measure. Using that URL as a guide, I ran the following command to stop any Windows Automatic Maintenance Scheduled Tasks


Get-ScheduledTask | Where TaskPath -like "*TaskScheduler*" | Stop-ScheduledTask

Open in new window


I re-ran the Command 


install-windowsfeature -name RDS-RD-Server -source wim:G:\sources\install.wim:4

Open in new window


and got the same result as described before with Error: 0x80073701.


Is there a way to see if I can pause "Windows Automatic Maintenance"? I don't see it running in the Task Manager.


Thanks!

Please post the get-windoesfeature

In text form.

Hey Arnold - Here you go:


PS C:\Users\me> get-windowsfeature


Display Name                                            Name                       Install State

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

[ ] Active Directory Certificate Services               AD-Certificate                 Available

    [ ] Certification Authority                         ADCS-Cert-Authority            Available

    [ ] Certificate Enrollment Policy Web Service       ADCS-Enroll-Web-Pol            Available

    [ ] Certificate Enrollment Web Service              ADCS-Enroll-Web-Svc            Available

    [ ] Certification Authority Web Enrollment          ADCS-Web-Enrollment            Available

    [ ] Network Device Enrollment Service               ADCS-Device-Enrollment         Available

    [ ] Online Responder                                ADCS-Online-Cert               Available

[ ] Active Directory Domain Services                    AD-Domain-Services             Available

[ ] Active Directory Federation Services                ADFS-Federation                Available

[ ] Active Directory Lightweight Directory Services     ADLDS                          Available

[ ] Active Directory Rights Management Services         ADRMS                          Available

    [ ] Active Directory Rights Management Server       ADRMS-Server                   Available

    [ ] Identity Federation Support                     ADRMS-Identity                 Available

[ ] Device Health Attestation                           DeviceHealthAttestat...        Available

[ ] DHCP Server                                         DHCP                           Available

[ ] DNS Server                                          DNS                            Available

[ ] Fax Server                                          Fax                            Available

[X] File and Storage Services                           FileAndStorage-Services        Installed

    [X] File and iSCSI Services                         File-Services                  Installed

        [X] File Server                                 FS-FileServer                  Installed

        [ ] BranchCache for Network Files               FS-BranchCache                 Available

        [ ] Data Deduplication                          FS-Data-Deduplication          Available

        [ ] DFS Namespaces                              FS-DFS-Namespace               Available

        [ ] DFS Replication                             FS-DFS-Replication             Available

        [ ] File Server Resource Manager                FS-Resource-Manager            Available

        [ ] File Server VSS Agent Service               FS-VSS-Agent                   Available

        [ ] iSCSI Target Server                         FS-iSCSITarget-Server          Available

        [ ] iSCSI Target Storage Provider (VDS and V... iSCSITarget-VSS-VDS            Available

        [ ] Server for NFS                              FS-NFS-Service                 Available

        [ ] Work Folders                                FS-SyncShareService            Available

    [X] Storage Services                                Storage-Services               Installed

[ ] Host Guardian Service                               HostGuardianServiceRole        Available

[ ] Hyper-V                                             Hyper-V                        Available

[ ] Network Controller                                  NetworkController              Available

[ ] Network Policy and Access Services                  NPAS                           Available

[ ] Print and Document Services                         Print-Services                 Available

    [ ] Print Server                                    Print-Server                   Available

    [ ] Internet Printing                               Print-Internet                 Available

    [ ] LPD Service                                     Print-LPD-Service              Available

[ ] Remote Access                                       RemoteAccess                   Available

    [ ] DirectAccess and VPN (RAS)                      DirectAccess-VPN               Available

    [ ] Routing                                         Routing                        Available

    [ ] Web Application Proxy                           Web-Application-Proxy          Available

[X] Remote Desktop Services                             Remote-Desktop-Services        Installed

    [X] Remote Desktop Connection Broker                RDS-Connection-Broker          Installed

    [ ] Remote Desktop Gateway                          RDS-Gateway                    Available

    [X] Remote Desktop Licensing                        RDS-Licensing                  Installed

    [ ] Remote Desktop Session Host                     RDS-RD-Server                  Available

    [ ] Remote Desktop Virtualization Host              RDS-Virtualization             Available

    [ ] Remote Desktop Web Access                       RDS-Web-Access                 Available

[ ] Volume Activation Services                          VolumeActivation               Available

[X] Web Server (IIS)                                    Web-Server                     Installed

    [X] Web Server                                      Web-WebServer                  Installed

        [X] Common HTTP Features                        Web-Common-Http                Installed

            [X] Default Document                        Web-Default-Doc                Installed

            [X] Directory Browsing                      Web-Dir-Browsing               Installed

            [X] HTTP Errors                             Web-Http-Errors                Installed

            [X] Static Content                          Web-Static-Content             Installed

            [X] HTTP Redirection                        Web-Http-Redirect              Installed

            [ ] WebDAV Publishing                       Web-DAV-Publishing             Available

        [X] Health and Diagnostics                      Web-Health                     Installed

            [X] HTTP Logging                            Web-Http-Logging               Installed

            [ ] Custom Logging                          Web-Custom-Logging             Available

            [X] Logging Tools                           Web-Log-Libraries              Installed

            [X] ODBC Logging                            Web-ODBC-Logging               Installed

            [X] Request Monitor                         Web-Request-Monitor            Installed

            [X] Tracing                                 Web-Http-Tracing               Installed

        [X] Performance                                 Web-Performance                Installed

            [X] Static Content Compression              Web-Stat-Compression           Installed

            [X] Dynamic Content Compression             Web-Dyn-Compression            Installed

        [X] Security                                    Web-Security                   Installed

            [X] Request Filtering                       Web-Filtering                  Installed

            [X] Basic Authentication                    Web-Basic-Auth                 Installed

            [X] Centralized SSL Certificate Support     Web-CertProvider               Installed

            [ ] Client Certificate Mapping Authentic... Web-Client-Auth                Available

            [ ] Digest Authentication                   Web-Digest-Auth                Available

            [ ] IIS Client Certificate Mapping Authe... Web-Cert-Auth                  Available

            [X] IP and Domain Restrictions              Web-IP-Security                Installed

            [X] URL Authorization                       Web-Url-Auth                   Installed

            [X] Windows Authentication                  Web-Windows-Auth               Installed

        [X] Application Development                     Web-App-Dev                    Installed

            [X] .NET Extensibility 3.5                  Web-Net-Ext                    Installed

            [X] .NET Extensibility 4.7                  Web-Net-Ext45                  Installed

            [ ] Application Initialization              Web-AppInit                    Available

            [ ] ASP                                     Web-ASP                        Available

            [X] ASP.NET 3.5                             Web-Asp-Net                    Installed

            [X] ASP.NET 4.7                             Web-Asp-Net45                  Installed

            [ ] CGI                                     Web-CGI                        Available

            [X] ISAPI Extensions                        Web-ISAPI-Ext                  Installed

            [X] ISAPI Filters                           Web-ISAPI-Filter               Installed

            [ ] Server Side Includes                    Web-Includes                   Available

            [ ] WebSocket Protocol                      Web-WebSockets                 Available

    [X] FTP Server                                      Web-Ftp-Server                 Installed

        [X] FTP Service                                 Web-Ftp-Service                Installed

        [ ] FTP Extensibility                           Web-Ftp-Ext                    Available

    [X] Management Tools                                Web-Mgmt-Tools                 Installed

        [X] IIS Management Console                      Web-Mgmt-Console               Installed

        [X] IIS 6 Management Compatibility              Web-Mgmt-Compat                Installed

            [X] IIS 6 Metabase Compatibility            Web-Metabase                   Installed

            [X] IIS 6 Management Console                Web-Lgcy-Mgmt-Console          Installed

            [X] IIS 6 Scripting Tools                   Web-Lgcy-Scripting             Installed

            [X] IIS 6 WMI Compatibility                 Web-WMI                        Installed

        [X] IIS Management Scripts and Tools            Web-Scripting-Tools            Installed

        [X] Management Service                          Web-Mgmt-Service               Installed

[ ] Windows Deployment Services                         WDS                            Available

    [ ] Deployment Server                               WDS-Deployment                 Available

    [ ] Transport Server                                WDS-Transport                  Available

[ ] Windows Server Update Services                      UpdateServices                 Available

    [ ] WID Connectivity                                UpdateServices-WidDB           Available

    [ ] WSUS Services                                   UpdateServices-Services        Available

    [ ] SQL Server Connectivity                         UpdateServices-DB              Available

[X] .NET Framework 3.5 Features                         NET-Framework-Features         Installed

    [X] .NET Framework 3.5 (includes .NET 2.0 and 3.0)  NET-Framework-Core             Installed

    [ ] HTTP Activation                                 NET-HTTP-Activation            Available

    [ ] Non-HTTP Activation                             NET-Non-HTTP-Activ             Available

[X] .NET Framework 4.7 Features                         NET-Framework-45-Fea...        Installed

    [X] .NET Framework 4.7                              NET-Framework-45-Core          Installed

    [X] ASP.NET 4.7                                     NET-Framework-45-ASPNET        Installed

    [X] WCF Services                                    NET-WCF-Services45             Installed

        [ ] HTTP Activation                             NET-WCF-HTTP-Activat...        Available

        [ ] Message Queuing (MSMQ) Activation           NET-WCF-MSMQ-Activat...        Available

        [ ] Named Pipe Activation                       NET-WCF-Pipe-Activat...        Available

        [ ] TCP Activation                              NET-WCF-TCP-Activati...        Available

        [X] TCP Port Sharing                            NET-WCF-TCP-PortShar...        Installed

[ ] Background Intelligent Transfer Service (BITS)      BITS                           Available

    [ ] IIS Server Extension                            BITS-IIS-Ext                   Available

    [ ] Compact Server                                  BITS-Compact-Server            Available

[ ] BitLocker Drive Encryption                          BitLocker                      Available

[ ] BitLocker Network Unlock                            BitLocker-NetworkUnlock        Available

[ ] BranchCache                                         BranchCache                    Available

[ ] Client for NFS                                      NFS-Client                     Available

[ ] Containers                                          Containers                     Available

[ ] Data Center Bridging                                Data-Center-Bridging           Available

[ ] Direct Play                                         Direct-Play                    Available

[ ] Enhanced Storage                                    EnhancedStorage                Available

[ ] Failover Clustering                                 Failover-Clustering            Available

[ ] Group Policy Management                             GPMC                           Available

[ ] Host Guardian Hyper-V Support                       HostGuardian                   Available

[ ] I/O Quality of Service                              DiskIo-QoS                     Available

[ ] IIS Hostable Web Core                               Web-WHC                        Available

[ ] Internet Printing Client                            Internet-Print-Client          Available

[ ] IP Address Management (IPAM) Server                 IPAM                           Available

[ ] iSNS Server service                                 ISNS                           Available

[ ] LPR Port Monitor                                    LPR-Port-Monitor               Available

[ ] Management OData IIS Extension                      ManagementOdata                Available

[ ] Media Foundation                                    Server-Media-Foundation        Available

[ ] Message Queuing                                     MSMQ                           Available

    [ ] Message Queuing Services                        MSMQ-Services                  Available

        [ ] Message Queuing Server                      MSMQ-Server                    Available

        [ ] Directory Service Integration               MSMQ-Directory                 Available

        [ ] HTTP Support                                MSMQ-HTTP-Support              Available

        [ ] Message Queuing Triggers                    MSMQ-Triggers                  Available

        [ ] Multicasting Support                        MSMQ-Multicasting              Available

        [ ] Routing Service                             MSMQ-Routing                   Available

    [ ] Message Queuing DCOM Proxy                      MSMQ-DCOM                      Available

[ ] Multipath I/O                                       Multipath-IO                   Available

[ ] MultiPoint Connector                                MultiPoint-Connector           Available

    [ ] MultiPoint Connector Services                   MultiPoint-Connector...        Available

    [ ] MultiPoint Manager and MultiPoint Dashboard     MultiPoint-Tools               Available

[ ] Network Load Balancing                              NLB                            Available

[ ] Network Virtualization                              NetworkVirtualization          Available

[ ] Peer Name Resolution Protocol                       PNRP                           Available

[ ] Quality Windows Audio Video Experience              qWave                          Available

[ ] RAS Connection Manager Administration Kit (CMAK)    CMAK                           Available

[ ] Remote Assistance                                   Remote-Assistance              Available

[ ] Remote Differential Compression                     RDC                            Available

[X] Remote Server Administration Tools                  RSAT                           Installed

    [X] Feature Administration Tools                    RSAT-Feature-Tools             Installed

        [X] SMTP Server Tools                           RSAT-SMTP                      Installed

        [ ] BitLocker Drive Encryption Administratio... RSAT-Feature-Tools-B...        Available

            [ ] BitLocker Drive Encryption Tools        RSAT-Feature-Tools-B...        Available

            [ ] BitLocker Recovery Password Viewer      RSAT-Feature-Tools-B...        Available

        [ ] BITS Server Extensions Tools                RSAT-Bits-Server               Available

        [ ] DataCenterBridging LLDP Tools               RSAT-DataCenterBridg...        Available

        [ ] Failover Clustering Tools                   RSAT-Clustering                Available

            [ ] Failover Cluster Management Tools       RSAT-Clustering-Mgmt           Available

            [ ] Failover Cluster Module for Windows ... RSAT-Clustering-Powe...        Available

            [ ] Failover Cluster Automation Server      RSAT-Clustering-Auto...        Available

            [ ] Failover Cluster Command Interface      RSAT-Clustering-CmdI...        Available

        [ ] IP Address Management (IPAM) Client         IPAM-Client-Feature            Available

        [ ] Network Load Balancing Tools                RSAT-NLB                       Available

        [ ] Shielded VM Tools                           RSAT-Shielded-VM-Tools         Available

        [ ] SNMP Tools                                  RSAT-SNMP                      Available

        [ ] Storage Migration Service Tools             RSAT-SMS                       Available

        [ ] Storage Replica Module for Windows Power... RSAT-Storage-Replica           Available

        [ ] System Insights Module for Windows Power... RSAT-System-Insights           Available

        [ ] WINS Server Tools                           RSAT-WINS                      Available

    [ ] Role Administration Tools                       RSAT-Role-Tools                Available

        [ ] AD DS and AD LDS Tools                      RSAT-AD-Tools                  Available

            [ ] Active Directory module for Windows ... RSAT-AD-PowerShell             Available

            [ ] AD DS Tools                             RSAT-ADDS                      Available

                [ ] Active Directory Administrative ... RSAT-AD-AdminCenter            Available

                [ ] AD DS Snap-Ins and Command-Line ... RSAT-ADDS-Tools                Available

            [ ] AD LDS Snap-Ins and Command-Line Tools  RSAT-ADLDS                     Available

        [ ] Hyper-V Management Tools                    RSAT-Hyper-V-Tools             Available

            [ ] Hyper-V GUI Management Tools            Hyper-V-Tools                  Available

            [ ] Hyper-V Module for Windows PowerShell   Hyper-V-PowerShell             Available

        [ ] Remote Desktop Services Tools               RSAT-RDS-Tools                 Available

            [ ] Remote Desktop Gateway Tools            RSAT-RDS-Gateway               Available

            [ ] Remote Desktop Licensing Diagnoser T... RSAT-RDS-Licensing-D...        Available

            [ ] Remote Desktop Licensing Tools          RDS-Licensing-UI               Available

        [ ] Windows Server Update Services Tools        UpdateServices-RSAT            Available

            [ ] API and PowerShell cmdlets              UpdateServices-API             Available

            [ ] User Interface Management Console       UpdateServices-UI              Available

        [ ] Active Directory Certificate Services Tools RSAT-ADCS                      Available

            [ ] Certification Authority Management T... RSAT-ADCS-Mgmt                 Available

            [ ] Online Responder Tools                  RSAT-Online-Responder          Available

        [ ] Active Directory Rights Management Servi... RSAT-ADRMS                     Available

        [ ] DHCP Server Tools                           RSAT-DHCP                      Available

        [ ] DNS Server Tools                            RSAT-DNS-Server                Available

        [ ] Fax Server Tools                            RSAT-Fax                       Available

        [ ] File Services Tools                         RSAT-File-Services             Available

            [ ] DFS Management Tools                    RSAT-DFS-Mgmt-Con              Available

            [ ] File Server Resource Manager Tools      RSAT-FSRM-Mgmt                 Available

            [ ] Services for Network File System Man... RSAT-NFS-Admin                 Available

        [ ] Network Controller Management Tools         RSAT-NetworkController         Available

        [ ] Network Policy and Access Services Tools    RSAT-NPAS                      Available

        [ ] Print and Document Services Tools           RSAT-Print-Services            Available

        [ ] Remote Access Management Tools              RSAT-RemoteAccess              Available

            [ ] Remote Access GUI and Command-Line T... RSAT-RemoteAccess-Mgmt         Available

            [ ] Remote Access module for Windows Pow... RSAT-RemoteAccess-Po...        Available

        [ ] Volume Activation Tools                     RSAT-VA-Tools                  Available

        [ ] Windows Deployment Services Tools           WDS-AdminPack                  Available

[ ] RPC over HTTP Proxy                                 RPC-over-HTTP-Proxy            Available

[ ] Setup and Boot Event Collection                     Setup-and-Boot-Event...        Available

[ ] Simple TCP/IP Services                              Simple-TCPIP                   Available

[ ] SMB 1.0/CIFS File Sharing Support                   FS-SMB1                        Available

    [ ] SMB 1.0/CIFS Client                             FS-SMB1-CLIENT                 Available

    [ ] SMB 1.0/CIFS Server                             FS-SMB1-SERVER                 Available

[ ] SMB Bandwidth Limit                                 FS-SMBBW                       Available

[X] SMTP Server                                         SMTP-Server                    Installed

[ ] SNMP Service                                        SNMP-Service                   Available

    [ ] SNMP WMI Provider                               SNMP-WMI-Provider              Available

[ ] Software Load Balancer                              SoftwareLoadBalancer           Available

[ ] Storage Migration Service                           SMS                            Available

[ ] Storage Migration Service Proxy                     SMS-Proxy                      Available

[ ] Storage Replica                                     Storage-Replica                Available

[X] System Data Archiver                                System-DataArchiver            Installed

[ ] System Insights                                     System-Insights                Available

[X] Telnet Client                                       Telnet-Client                  Installed

[ ] TFTP Client                                         TFTP-Client                    Available

[ ] VM Shielding Tools for Fabric Management            FabricShieldedTools            Available

[ ] WebDAV Redirector                                   WebDAV-Redirector              Available

[ ] Windows Biometric Framework                         Biometric-Framework            Available

[X] Windows Defender Antivirus                          Windows-Defender               Installed

[ ] Windows Identity Foundation 3.5                     Windows-Identity-Fou...        Available

[X] Windows Internal Database                           Windows-Internal-Dat...        Installed

[X] Windows PowerShell                                  PowerShellRoot                 Installed

    [X] Windows PowerShell 5.1                          PowerShell                     Installed

    [X] Windows PowerShell 2.0 Engine                   PowerShell-V2                  Installed

    [ ] Windows PowerShell Desired State Configurati... DSC-Service                    Available

    [X] Windows PowerShell ISE                          PowerShell-ISE                 Installed

    [ ] Windows PowerShell Web Access                   WindowsPowerShellWeb...        Available

[ ] Windows Process Activation Service                  WAS                            Available

    [ ] Process Model                                   WAS-Process-Model              Available

    [ ] .NET Environment 3.5                            WAS-NET-Environment            Available

    [ ] Configuration APIs                              WAS-Config-APIs                Available

[ ] Windows Search Service                              Search-Service                 Available

[ ] Windows Server Backup                               Windows-Server-Backup          Available

[ ] Windows Server Migration Tools                      Migration                      Available

[ ] Windows Standards-Based Storage Management          WindowsStorageManage...        Available

[ ] Windows Subsystem for Linux                         Microsoft-Windows-Su...        Available

[ ] Windows TIFF IFilter                                Windows-TIFF-IFilter           Available

[ ] WinRM IIS Extension                                 WinRM-IIS-Ext                  Available

[ ] WINS Server                                         WINS                           Available

[ ] Wireless LAN Service                                Wireless-Networking            Available

[X] WoW64 Support                                       WoW64-Support                  Installed

[X] XPS Viewer                                          XPS-Viewer                     Installed




Thanks again!



lets try this
install-windowsfeature -name RSAT-RDS*, RDS-Licensing-UI -source wim:G:\Sources\install.wim[4]

remove-windowsfeature -name RDS-Connection-Broker

if the prior addition of components errors out.

How far along are you with this setup?

Is this system joined to the domain?

This command worked and I restarted afterwards:

remove-windowsfeature -name RDS-Connection-Broker

Open in new window


It wouldn't take the Wildcard so I consolidated as follows:

install-windowsfeature -name RSAT-RDS-Tools, RSAT-RDS-Gateway, RDS-Licensing-UI -source wim:G:\Sources\install.wim:4

Open in new window


This was successful! While it did say a Restart wasn't necessary I went ahead and did one for good measure.


>How far along are you with this setup? Is this system joined to the domain?


I'm very far along on this Server. This is the last thing I need to do before releasing to the Devs. 


This is joined to a Domain already, yes. 


I then took a chance and did the remaining three Roles like this:


install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RDS-Web-Access -source wim:G:\Sources\install.wim:4

Open in new window


And ended up getting the same error that I've highlighted below:


PS C:\Users\me> install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RDS-Web-Access -source wim:G:\Sources\install.wim:4
install-windowsfeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The referenced assembly could not be found. Error: 0x80073701
At line:1 char:1
+ install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RD ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
   owsFeatureCommand

Open in new window

   

Thank you again for all your help! We're do close!


Try post reboot, doing the same thing, but use the following when specifying source (make sure the ISO_ remains attached to the VM post reboot.
-source wim:G:\sources\image.wim[4]

Thank you, Arnold. 


>make sure the ISO_ remains attached to the VM post reboot


Yes, this is attached as a Volume.


When I run this command: 


install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RDS-Web-Access -source wim:G:\sources\image.wim[4]

Open in new window

I get this Error, stating that the parameter is incorrect:


<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

PS C:\Users\me> install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RDS-Web-Access -source wim:G

:\sources\image.wim[4]

install-windowsfeature : The request to add or remove features on the specified server failed.

Installation of one or more roles, role services, or features failed.

The parameter is incorrect. Error: 0x80070057

At line:1 char:1

+ install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RD ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],

    Exception

    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind

   owsFeatureCommand


Success Restart Needed Exit Code      Feature Result

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

False   No             Failed         {}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


When I go back to the original command from last week:


install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RDS-Web-Access -source wim:G:\Sources\install.wim:4

Open in new window


I get the error that the assembly couldn't be found:


<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

PS C:\Users\me> install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RDS-Web-Access -source wim:G:\Sources\install.wim:4

install-windowsfeature : The request to add or remove features on the specified server failed.

Installation of one or more roles, role services, or features failed.

The referenced assembly could not be found. Error: 0x80073701

At line:1 char:1

+ install-windowsfeature -name RDS-Connection-Broker, RDS-RD-Server, RD ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],

    Exception

    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind

   owsFeatureCommand


Success Restart Needed Exit Code      Feature Result

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

False   No             Failed         {}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Is there a way to force this to download directly from Microsoft? (I'm not quite sure where to go with this one).


Thanks for your help. I really appreciate your assistance. 

If you are installing a stand alone RDP server, why are you installing the broker, but not the gateway?

You already have the broker installed from before, and the licensing .

The error still points an MS update as possibly why it is halting the process.

are you running this right after rebooting system.

Try limiting the install to the essential components of RDS/RSAT-rds* leave the web rdweb off the list for now.
or install the RSAT RDS administrative tools so that you can see what is going on....

usually, using the source media it should sail through.

>If you are installing a stand alone RDP server, why are you installing the broker, but not the gateway?
>You already have the broker installed from before, and the licensing .


Yes, some altitude is good thing at this point. Thanks for that. I'm only attempting to install the Roles & Features that run a stand-alone instance on Windows Server 2016. If there is another way to install 50 User CALs on a single server I am open to a new direction.


 >The error still points an MS update as possibly why it is halting the process.


I found an old script that will show pending or available updates and when I ran this, there were no updates. Here's where I found the script:


https://gist.github.com/Grimthorr/44727ea8cf5d3df11cf7


So, back to your original question: Since the Quick Start method wasn't working as expected I went the "a la carte" route and, using the Windows Server 2016 as an example, started to install each Role and Feature individually.


To be even more explicit. I want to see this (how it looks on my Windows Server 2016 instance) ->

User generated image


But instead I'm seeing this in Windows Server 2019:User generated image

Thank you again for the sanity check. And like I mentioned, if there is another method I'm open to trying that.


You're assistance has been critical in getting this accomplished. Thank you. 

I did a system scan again (e.g. sfc /scannow) and there were some files that were unable to be repaired. Then ended up being mismatches for "tls_branding_config.xml" and "LServer_PKConfig.xml". I'm going to start researching this this afternoon. Would be easy to find these components and delete them in order to reinstall?


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

2023-08-01 12:57:09, Info                  CSI    00006ca7 [SR] Cannot repair member file [l:20]'LServer_PKConfig.xml' of Microsoft-Windows-TerminalServices-LicenseServer-LRWIZDLL, version 10.0.17763.1, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35} in the store, hash mismatch

2023-08-01 12:57:09, Info                  CSI    00006ca8 Hashes for file member [l:23]'tls_branding_config.xml' do not match.

 Expected: {l:32 ml:4096 b:c3b2a8c679b89829b173cd05bdfa46acb1b28a6d4da26fcf0295387a385a9262}.

 Actual: {l:32 b:8e6adaf781147f87780c1dd37e63b529f4a49482d541a7f417fe46458f395047}.

2023-08-01 12:57:09, Info                  CSI    00006ca9 [SR] Cannot repair member file [l:23]'tls_branding_config.xml' of Microsoft-Windows-TerminalServices-LicenseServer-TlsBrand, version 10.0.17763.1075, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35} in the store, hash mismatch

2023-08-01 12:57:09, Info                  CSI    00006caa@2023/8/1:19:57:09.973 Primitive installers committed for repair

2023-08-01 12:57:09, Info                  CSI    00006cab Hashes for file member [l:20]'LServer_PKConfig.xml' do not match.

 Expected: {l:32 ml:4096 b:a68ced28a12c6d3a25c153e76217f1830e2d94b9c71e4f9b2ebb2b01335af2b6}.

 Actual: {l:32 b:b45d90e43527e118b400d87486820dd8460912fabd1ef147e654b1afc0d4378c}.

2023-08-01 12:57:09, Info                  CSI    00006cac [SR] Cannot repair member file [l:20]'LServer_PKConfig.xml' of Microsoft-Windows-TerminalServices-LicenseServer-LRWIZDLL, version 10.0.17763.1, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35} in the store, hash mismatch

2023-08-01 12:57:09, Info                  CSI    00006cad [SR] This component was referenced by [l:99]'Microsoft-Windows-TerminalServices-Licensing-Package~31bf3856ad364e35~amd64~~10.0.17763.1.Licensing'

2023-08-01 12:57:09, Info                  CSI    00006cae [SR] This component was referenced by [l:105]'Microsoft-Windows-TerminalServices-Licensing-UI-Package~31bf3856ad364e35~amd64~~10.0.17763.1.Licensing-UI'

2023-08-01 12:57:09, Info                  CSI    00006caf Hashes for file member [l:20]'LServer_PKConfig.xml' do not match.

 Expected: {l:32 ml:4096 b:a68ced28a12c6d3a25c153e76217f1830e2d94b9c71e4f9b2ebb2b01335af2b6}.

 Actual: {l:32 b:b45d90e43527e118b400d87486820dd8460912fabd1ef147e654b1afc0d4378c}.

2023-08-01 12:57:10, Info                  CSI    00006cba [SR] Cannot repair member file [l:23]'tls_branding_config.xml' of Microsoft-Windows-TerminalServices-LicenseServer-TlsBrand, version 10.0.17763.1075, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35} in the store, hash mismatch

2023-08-01 12:57:10, Info                  CSI    00006cbb [SR] This component was referenced by [l:81]'Package_4640_for_KB5028168~31bf3856ad364e35~amd64~~10.0.1.14.5028168-8668_neutral'

2023-08-01 12:57:10, Info                  CSI    00006cbc [SR] This component was referenced by [l:82]'Package_5582_for_KB5028168~31bf3856ad364e35~amd64~~10.0.1.14.5028168-10253_neutral'

2023-08-01 12:57:10, Info                  CSI    00006cbd [SR] This component was referenced by [l:81]'Package_2880_for_KB5028168~31bf3856ad364e35~amd64~~10.0.1.14.5028168-5372_neutral'

2023-08-01 12:57:10, Info                  CSI    00006cbe Hashes for file member [l:23]'tls_branding_config.xml' do not match.

 Expected: {l:32 ml:4096 b:c3b2a8c679b89829b173cd05bdfa46acb1b28a6d4da26fcf0295387a385a9262}.

 Actual: {l:32 b:8e6adaf781147f87780c1dd37e63b529f4a49482d541a7f417fe46458f395047}.

2023-08-01 12:57:10, Info                  CSI    00006cbf Hashes for file member [l:23]'tls_branding_config.xml' do not match.

 Expected: {l:32 ml:4096 b:c3b2a8c679b89829b173cd05bdfa46acb1b28a6d4da26fcf0295387a385a9262}.

 Actual: {l:32 b:8e6adaf781147f87780c1dd37e63b529f4a49482d541a7f417fe46458f395047}.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

You do not have the RDS-Gateway installed, it has nothing to show.

you can try

dism /cleanup-image /restorehealth

lets try getting the tools in place

remove-windowsfeature -name RDS-Connection-broker
reboot
install-windowsfeature -name RSAT-RDS*, RDS-Licensing-UI -source wim:G:\sources\install.wim:4

See if you progress further
install-windowsfeature -name RDS-Session-host -source wim:G:\sources\install.wim:4

https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/install-rds-host-role-service-without-connection-broker

The computer is joined to the domain, correct?

install-windowsfeature -name RDS-gateway, RDS-session-host -source wim:G:\sources\install.wim:4

If you have the resources/space spin up a new VM with win19 you have many more componets install on an RDS server .....

Simple install, RSAT-rds*, RDS-licensing-ui, RDS-licensing, RDS-session-host -source wim:G:\sources\install.wim:4

See if going from scratch gets you what you are after, and then backfill the roles you need.




ASKER CERTIFIED SOLUTION
Avatar of Tessando
Tessando
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account