Enable-QADDiagnosticLog
From PowerGUI Wiki
Turn on diagnostic logging in ActiveRoles Management Shell. Diagnostic logging is mainly intended to be used by support personnel for troubleshooting purposes.
This cmdlet is part of the Quest ActiveRoles Server product. Use Get-QARSProductInfo to view information about ActiveRoles Server.
Contents |
Syntax
Enable-QADDiagnosticLog [-Path] <string> [-Global] [<CommonParameters>]
Detailed Description
Use this cmdlet to turn on diagnostic logging so as to have the ActiveRoles Management Shell cmdlets record diagnostic information to the file specified. When you use this cmdlet without the Global parameter, diagnostic logging is enabled only during the current session. If you want to keep diagnostic logging after you close and reopen Management Shell, use the Global parameter.
Note that the Global parameter does not have an effect on the current session if you have already enabled logging without the Global parameter. Similarly, when global logging is enabled, specifying a new log file by using this cmdlet without the Global parameter causes the current session diagnostic information to be redirected to the file specified.
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
| Global | Use this parameter to enable diagnostic logging for the current and future sessions. Without this parameter, diagnostic logging is enabled for the current session only. | false | false | |
| Path | Specify the path and name of the log file to hold the diagnostic information. | true | false |
Examples
EXAMPLE 1
Enable-QADDiagnosticLog 'c:\temp\arsps.log'
Description
Turn on diagnostic logging for the current Management Shell session, with the diagnostic information being recorded to the file c:\temp\arsps.log.
