Command returns no results - Why? - Windows Server 2019 - Get-WindowsCapability -Name RSAT -Online

Steve Y 96 Reputation points
2021-07-07T13:28:53.23+00:00

I have a Windows Server 2019 Standard 1809 virtual server built up.
When running the command:

Get-WindowsCapability -Name RSAT -Online

No results are returned at all.

I need a PowerShell script to install specifically the AD DS+LDS Toolset if its not already installed and available so the ActiveDirectory PowerShell module can be used within scripts.

If I run Get-WindowsFeature -Name RSAT, this returns the Remote Server Administration Toolset, and lists the AD DS+LDS Tools that are required, but I can't find a way to specifically install just that one tool, and not the entire RSAT tooling list.

Please can someone clarify what I should be running in order to install specifically the one RSAT feature I require?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,083 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,355 questions
0 comments No comments
{count} votes

Accepted answer
  1. Steve Y 96 Reputation points
    2021-07-07T17:17:24.45+00:00

    How utterly and absolutely ridiculous:

    You can't install RSAT on computers that are running Home or Standard editions of Windows. You can install RSAT only on Professional or Enterprise editions of the Windows client operating system.

    Because you can via the GUI, because I have them installed... but command line install doesn't show them.

    Good job, Microsoft!


2 additional answers

Sort by: Most helpful
  1. Rich Matheisen 44,696 Reputation points
    2021-07-07T14:58:19.217+00:00

    The "-Name parameter doesn't accept wildcards:

    -Name

    Specifies the identity of the capability in an operating system image to get.

    Type: String
    Position: Named
    Default value: None
    Accept pipeline input: True
    Accept wildcard characters: False

    Try this:

    Get-WindowsCapability -Online |
        Wher-Object {$_.Name -Like "rsat*"
    

  2. Rich Matheisen 44,696 Reputation points
    2021-07-07T18:41:32.623+00:00

    As odd as this may seem, I think the "capability" of RSAT is just part of Win 2019. Why you can't see it (as you can in the GUI) I don't know. However, you can use:

    $x=Get-WindowsFeature -Name RSAT*
    
    $x[0]
    
    Display Name                                            Name                       Install State
    ------------                                            ----                       -------------
    [X] Remote Server Administration Tools                  RSAT                           Installed
    
    $x.count
    46
    
    $x.name
    RSAT
    RSAT-Feature-Tools
    RSAT-SMTP
    RSAT-Feature-Tools-BitLocker
    RSAT-Feature-Tools-BitLocker-RemoteAdminTool
    RSAT-Feature-Tools-BitLocker-BdeAducExt
    RSAT-Bits-Server
    RSAT-DataCenterBridging-LLDP-Tools
    RSAT-Clustering
    RSAT-Clustering-Mgmt
    RSAT-Clustering-PowerShell
    RSAT-Clustering-AutomationServer
    RSAT-Clustering-CmdInterface
    RSAT-NLB
    RSAT-Shielded-VM-Tools
    RSAT-SNMP
    RSAT-Storage-Replica
    RSAT-WINS
    RSAT-Role-Tools
    RSAT-AD-Tools
    RSAT-AD-PowerShell
    RSAT-ADDS
    RSAT-AD-AdminCenter
    RSAT-ADDS-Tools
    RSAT-ADLDS
    RSAT-Hyper-V-Tools
    RSAT-RDS-Tools
    RSAT-RDS-Gateway
    RSAT-RDS-Licensing-Diagnosis-UI
    RSAT-ADCS
    RSAT-ADCS-Mgmt
    RSAT-Online-Responder
    RSAT-ADRMS
    RSAT-DHCP
    RSAT-DNS-Server
    RSAT-Fax
    RSAT-File-Services
    RSAT-DFS-Mgmt-Con
    RSAT-FSRM-Mgmt
    RSAT-NFS-Admin
    RSAT-NPAS
    RSAT-Print-Services
    RSAT-RemoteAccess
    RSAT-RemoteAccess-Mgmt
    RSAT-RemoteAccess-PowerShell
    RSAT-VA-Tools
    
    0 comments No comments