Edit

Share via


Enable-AppBackgroundTaskDiagnosticLog

Enables background task logging in Event Viewer.

Syntax

Default (Default)

Enable-AppBackgroundTaskDiagnosticLog
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Enable-AppBackgroundTaskDiagnosticLog cmdlet enables background task logging in Event Viewer. You must have administrator access to enable background task logging.

Examples

Example 1: Enable background task logging

PS C:\> Enable-AppBackgroundTaskDiagnosticLog

This command turns on background task logging in Event Viewer.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.