external help file | Locale | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
PSDiagnostics-help.xml |
en-US |
PSDiagnostics |
12/12/2022 |
2.0.0 |
Get-LogProperties |
Retrieves the properties of a Windows event log.
Get-LogProperties [-Name] <string> [<CommonParameters>]
This cmdlet gets the configuration settings of a Windows event log. This cmdlet is used by the
Enable-PSTrace
and Disable-PSTrace
cmdlets.
Get-LogProperties 'Windows PowerShell'
Name : Windows PowerShell
Enabled : True
Type : Admin
Retention : False
AutoBackup : False
MaxLogSize : 15728640
The name of the event provider.
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This cmdlet returns a LogDetails object.
The PSDiagnostics module adds the LogDetails class to the
Microsoft.PowerShell.Diagnostics
namespace.