Get-RASAgent
Retrieves RAS Agent information by server type or server name.
Get-RASAgent [-Server] <string> [-SiteId <uint>] [<CommonParameters>] Get-RASAgent [[-ServerType] {RDSHost | RDS | Provider | Gateway | Guest | VDITemplate | RDSTemplate | AVDTemplate | Broker | PA | Site | RDSHostPool | RDSGroup | HALBDevice | HALB | Enrollment | TenantBroker | VDIHost | AVDHost | AVDHostPool | AVDWorkspace | All}] [-SiteId <uint>] [<CommonParameters>]
Retrieves the information about RAS Agent(s) installed on a specific server or on servers of a specific type, such as. Connection Broker, RD Session Host, RAS Secure Gateway, Provider, VDI Desktop, VDI Template.
-Server <string> The name of server from which to retrieve Agent information. This must be the actual server name used in the RAS farm.
-SiteId <uint> Site ID from which to retrieve the specified Agent information. If the parameter is omitted, the site ID of the Licensing Server will be used.
-ServerType <RASServerType> Specifies the server type for which to retrieve the information. Possible values: RDSHost, RDS, Provider, Gateway, Guest, VDITemplate, RDSTemplate, AVDTemplate, Broker, PA, Site, RDSHostPool, RDSGroup, HALBDevice, HALB, Enrollment, TenantBroker, VDIHost, AVDHost, AVDHostPool, AVDWorkspace, All
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- Get-RASAgent -Server MyRASserver Retrieves the information about Agent(s) installed on the server named 'MyRASserver'. ---------- EXAMPLE 2 ---------- Get-RASAgent Retrieves the information about all Agents from all servers in the farm. ---------- EXAMPLE 3 ---------- Get-RASAgent -ServerType RDS Retrieves the information about the Agents installed on all RD Sessions Host servers in the farm. ---------- EXAMPLE 4 ---------- Get-RASAgent -SiteId 3 -ServerType RDS Retrieves the information about the Agents installed on all RD Sessions Host servers in the farm of a specific site. ---------- EXAMPLE 5 ---------- Get-RASAgent -SiteId 3 -Server MyRASserver Retrieves the information about Agent(s) installed on the server named 'MyRASserver' from a specific site.