For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-RASAgent

SYNOPSIS

Retrieves RAS Agent information by server type or server name.

SYNTAX

Get-RASAgent [-Server] <string> [-SiteId <uint>] [<CommonParameters>]
Get-RASAgent
 [[-ServerType] {RDSHost | Provider | Gateway | Guest | VDITemplate | RDSTemplate | AVDTemplate | VDITemplateVersion | AVDTemplateVersion | RDSTemplateVersion | ConnectionBroker | Broker | Site | VDIHostPool | RDSHostPool | HALBDevice | HALB | Enrollment | TenantBroker | VDIHost | AVDHost | AVDHostPool | AVDWorkspace | SessionRecordingStorageLocation | All}]
 [-SiteId <uint>] [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

Example 1

Get-RASAgent -Server MyRASserver

Retrieves the information about Agent(s) installed on the server named 'MyRASserver'.

Example 2

Retrieves the information about all Agents from all servers in the farm.

Example 3

Retrieves the information about the Agents installed on all RD Sessions Host servers in the farm.

Example 4

Retrieves the information about the Agents installed on all RD Sessions Host servers in the farm of a specific site.

Example 5

Retrieves the information about Agent(s) installed on the server named 'MyRASserver' from a specific site.

PARAMETERS

-Server

The name of server from which to retrieve Agent information.

This must be the actual server name used in the RAS farm.

-SiteId

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

Specifies the server type for which to retrieve the information.

Possible values: RDSHost, Provider, Gateway, Guest, VDITemplate, RDSTemplate, AVDTemplate, VDITemplateVersion, AVDTemplateVersion, RDSTemplateVersion, ConnectionBroker, Broker, Site, VDIHostPool, RDSHostPool, HALBDevice, HALB, Enrollment, TenantBroker, VDIHost, AVDHost, AVDHostPool, AVDWorkspace, SessionRecordingStorageLocation, All

Type reference: RASServerType

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

AVDHostPoolStatus AVDWorkspaceStatus AVDHostSysInfo ConnectionBrokerSysInfo GatewaySysInfo GuestAgentInfo HALBDeviceStatus HALBVirtualServerStatus ProviderSysInfo RDSHostPoolStatus RDSHostSysInfo SiteSysInfo TemplateStatus VDIHostPoolStatus VDIHostSysInfo

Last updated