Hi,
The Install-WindowsFeature cmdlet can install the specified features for you.
Install-WindowsFeature -Name remote-desktop-services,CMAK,RSAT-RDS-Licensing-Diagnosis-UI,RDS-Licensing-UI,
RSAT-RemoteAccess-Mgmt,RSAT-RemoteAccess-PowerShell,WAS-Process-Model, WAS-Config-APIs,
RDS-Connection-Broker,RDS-Licensing,RDS-RD-Server
https://learn.microsoft.com/en-us/powershell/module/servermanager/install-windowsfeature
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.