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

Invoke-RASClearAgentLogs

SYNOPSIS

Removes the Log file of one or more RAS Agents.

SYNTAX

Invoke-RASClearAgentLogs [-InputObject] <RASAgentInfo[]> [<CommonParameters>]
Invoke-RASClearAgentLogs [[-Server] <string>] [[-SiteId] <uint>]
 [-ServerType {RDS | Provider | Gateway | Broker | HALBDevice | EnrollmentServer | All}]
 [<CommonParameters>]

DESCRIPTION

Removes the Log file of one or more RAS Agents.

EXAMPLES

Example 1

Invoke-RASClearAgentLogs -ServerType RDS

Clears the log files for every RAS RDS Agent.

Example 2

Clears the log files for the specified RAS server.

Example 3

Clears the log files for the specified RAS server.

PARAMETERS

-ServerType

Specifies the server type for which to retrieve the information.

Possible values: RDS, Provider, Gateway, Broker, HALBDevice, EnrollmentServer, All

Type reference: RASLogSrvType

-Server

The name of the RAS agent server.

The name can be either FQDN or IP address, but you have to enter the actual name this server has in the RAS farm.

-SiteId

Site ID in which to modify the specified server.

If the parameter is omitted, the site ID of the Licensing Server will be used.

-InputObject

The RAS agent info.

To obtain an RASAgentInfo object representing an RAS agent info list, use the Get-RASAgent command."

Type reference: RASAgentInfo[]

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

RASAgentInfo[]

OUTPUTS

None

Last updated