Invoke-RASClearAgentLogs
Removes the Log file of one or more RAS Agents.
Invoke-RASClearAgentLogs [-InputObject] <RASAgentInfo[]> [<CommonParameters>] Invoke-RASClearAgentLogs [[-Server] <string>] [[-SiteId] <uint>] [-ServerType {RDS | Provider | VDIHost | Gateway | Broker | PA | HALBDevice | All}] [<CommonParameters>]
Removes the Log file of one or more RAS Agents.
-ServerType <RASLogSrvType> Specifies the server type for which to retrieve the information. Possible values: RDS, Provider, VDIHost, Gateway, Broker, PA, HALBDevice, All
-Server <string> 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 <uint> 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 <RASAgentInfo[]> The RAS agent info. To obtain an RASAgentInfo object representing an RAS agent info list, use the Get-RASAgent command."
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- Invoke-RASClearAgentLogs -ServerType RDS Clears the log files for every RAS RDS Agent. ---------- EXAMPLE 2 ---------- Invoke-RASClearAgentLogs -Server MyRASserver Clears the log files for the specified RAS server. ---------- EXAMPLE 3 ---------- Invoke-RASClearAgentLogs -InputObject $RDSStatus Clears the log files for the specified RAS server.