Set-RASAgentLogLevel

NAME

Set-RASAgentLogLevel

SYNOPSIS

Updates the Log Level of one or more RAS Agents.

SYNTAX

Set-RASAgentLogLevel [[-ServerType] <RASLogSrvType> {RDS | VDIHost | Gateway | PA | All}] [[-SiteId] <uint>] -LogLevel <RASLogLevel> {Critical | Error | Warning | Information | Extended | Trace} [<CommonParameters>]

Set-RASAgentLogLevel [-Server] <string> [[-SiteId] <uint>] -LogLevel <RASLogLevel> {Critical | Error | Warning | Information | Extended | Trace} [<CommonParameters>]

Set-RASAgentLogLevel [-InputObject] <RASAgentInfo[]> -LogLevel <RASLogLevel> {Critical | Error | Warning | Information | Extended | Trace} [<CommonParameters>]

DESCRIPTION

The Set-RASAgentLogLevel cmdlet is used to update the Log Level of one or more RAS Agents.

PARAMETERS


-LogLevel <RASLogLevel>
The new Log Level value.

Possible values: Critical, Error, Warning, Information, Extended, Trace

        Required?                    true
        Position?                    named
        Default value                Critical
        Accept pipeline input?       false
        Accept wildcard characters?  false

-ServerType <RASLogSrvType>
Specifies the server type for which to retrieve the information.

Acceptable values: ALL (Default), RDS, VDIHost, Gateway, PA.

Possible values: RDS, VDIHost, Gateway, PA, All

        Required?                    false
        Position?                    0
        Default value                All
        Accept pipeline input?       false
        Accept wildcard characters?  false

-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.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-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.

        Required?                    false
        Position?                    1
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-InputObject <RASAgentInfo[]>
The RAS agent info.

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

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

<CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters documentation. 

INPUTS

PSAdmin.RASAgentInfo[]

OUTPUTS

-none-

EXAMPLES


---------- EXAMPLE 1 ----------

Set-RASAgentLogLevel -ServerType RDS -LogLevel Extended

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

---------- EXAMPLE 2 ----------

Set-RASAgentLogLevel -Server MyRASserver -LogLevel Extended

Sets the log level for the specified RAS server to 'Extended'.

---------- EXAMPLE 3 ----------

Set-RASAgentLogLevel -InputObject $RDSStatus -LogLevel Extended

Sets the log level for the specified RDS RAS server to 'Extended'.

RELATED LINKS