Share via

security policy based on a prototype server

Fahrid F 201 Reputation points
2021-01-11T11:02:55.713+00:00

Hi All

I am planning to do the automation for below manual steps but didn't find the powershell cmdlets to automate it.

  1. Click Add Roles and Features.
  2. Select installation type page, select Role-based or feature-based installation and click Next.
  3. Select destination server page, select Select a server from the server pool and from the Server Pool select the server on which to install roles and features. By default the local computer is selected and click Next
  4. Select server roles page, select Remote Desktop Services
  5. Select features page, select the following features
  6. RAS Connection Manager Administration Kit (CMAK).
  7. Drop-down Remote Desktop Services Tools under Role Administration Tools of Remote Server Administration Tools and select Remote DesktopLicensingDiagnoser Tooland Remote Desktop LicensingTools.
  8. Select Remote Access Management Tools under Role Administration Tools of Remote Server Administration Tools. A pop-up message Add features that are required for Remote Access Management Tools? appears. Click Add Features. Ignore if pop-up does not appear. Drop-down Remote Access Management Tools and select Remote Access GUI and Command-Line Tools and Remote Access module for Windows PowerShell.
  9. Select and drop-down Windows Process Activation Service, select Process Model and Configuration APIs. Click Next.
  10. Click Next on Remote Desktop Service
  11. On Select role services page, select Remote Desktop Connection Broker, Remote Desktop Licensing, and Remote Desktop Session Host.
  12. Confirm installation selections, Click Install to proceed.
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-01-12T04:30:23.973+00:00

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.