# Set-RASAgentLogLevel

### NAME

Set-RASAgentLogLevel\ <br>

### SYNOPSIS

Updates the Log Level of one or more RAS Agents.\ <br>

### SYNTAX

Set-RASAgentLogLevel \[-[InputObject](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#InputObject)] *<*[*RASAgentInfo\[\]*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASAgentInfo.html)*>* -[LogLevel](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#LogLevel) {Critical | Error | Warning | Standard | Information | Extended | Verbose | Trace | None} \[-[DurationInSec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#DurationInSec) *\<uint>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#CommonParameters)*>*]\
\
Set-RASAgentLogLevel \[\[-[Server](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#Server)] *\<string>*] \[\[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#SiteId)] *\<uint>*] -[LogLevel](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#LogLevel) {Critical | Error | Warning | Standard | Information | Extended | Verbose | Trace | None} \[-[DurationInSec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#DurationInSec) *\<uint>*] \[-[ServerType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#ServerType) {RDS | Provider | VDIHost | Gateway | Broker | PA | HALBDevice | All}] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAgentLogLevel.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Updates the Log Level of one or more RAS Agents.\ <br>

### PARAMETERS

\
-**LogLevel <**[**RASLogLevel**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASLogLevel.html)**>**\
The new Log Level value.\
\
Possible values: Critical, Error, Warning, Standard, Information, Extended, Verbose, Trace, None\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                Critical
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DurationInSec \<uint>**\
The duration before the log level is reset back to Standard level (in seconds).\
\
Only applies for 'Extended' and 'Verbose' levels (Default: 43200 (12 hours), Max: 259200 (72 hours), Never: 0).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                43200
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ServerType <**[**RASLogSrvType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASLogSrvType.html)**>**\
Specifies the server type for which to retrieve the information.\
\
Possible values: RDS, Provider, VDIHost, Gateway, Broker, PA, HALBDevice, All\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        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.\ <br>

```
        Required?                    false
```

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    1
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InputObject <**[**RASAgentInfo\[\]**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASAgentInfo.html)**>**\
The RAS agent info.\
\
To obtain an RASAgentInfo object representing an RAS agent info list, use the Get-RASAgent command."\ <br>

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

<br>

### INPUTS

[RASAgentInfo\[\]](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASAgentInfo.html)

### OUTPUTS

-none-

### EXAMPLES

\
\&#xNAN;**---------- 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.\
\&#xNAN;**---------- EXAMPLE 2 ----------**\
\
Set-RASAgentLogLevel -Server MyRASserver -LogLevel Verbose -DurationInSec 43200\
\
Modifies the log level for the specified RAS server to 'Verbose' for a duration of 12 hours.\
\&#xNAN;**---------- EXAMPLE 3 ----------**\
\
Set-RASAgentLogLevel -InputObject $RDSStatus -LogLevel Extended -DurationInSec 259200\
\
Modifies the log level for the specified RDS RAS server to 'Extended' for maximum duration (72 hours).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/v19/parallels-ras-powershell-admin-module/commands/set-rasagentloglevel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
