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

Set-RASAgentLogLevel

SYNOPSIS

Updates the Log Level of one or more RAS Agents.

SYNTAX

Set-RASAgentLogLevel [-InputObject] <RASAgentInfo[]>
 -LogLevel {Standard | Extended | Verbose | None} [-DurationInSec <uint>] [<CommonParameters>]
Set-RASAgentLogLevel [[-Server] <string>] [[-SiteId] <uint>]
 -LogLevel {Standard | Extended | Verbose | None} [-DurationInSec <uint>]
 [-ServerType {RDS | Provider | Gateway | Broker | HALBDevice | EnrollmentServer | All}]
 [<CommonParameters>]

DESCRIPTION

Updates the Log Level of one or more RAS Agents.

EXAMPLES

Example 1

Set-RASAgentLogLevel -ServerType RDS -LogLevel Extended

Modifies the log level for every RAS RDS Agent to 'Extended'.

NB. If -Duration is ommitted, a 12 hours duration is set by default.

After duration has passed, the LogLevel is automatically reset to Standard.

Example 2

Modifies the log level for the specified RAS server to 'Verbose' for a duration of 12 hours.

Example 3

Modifies the log level for the specified RDS RAS server to 'Extended' for maximum duration (72 hours).

PARAMETERS

-LogLevel

The new Log Level value.

Possible values: Standard, Extended, Verbose, None

Type reference: RASLogLevel

-DurationInSec

The duration before the log level is reset back to Standard level (in seconds).

Only applies for 'Extended' and 'Verbose' levels.

Extended: (Default: 43200 (12 hours), Min: 3600 (1 hour), Max: 259200 (72 hours), Never: 0).

Verbose: (Default: 43200 (12 hours), Min: 3600 (1 hour), Max: 259200 (72 hours)).

-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