Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Enable-AppBackgroundTaskDiagnosticLog

Brian Lich|Last Updated: 3/8/2017

SYNOPSIS

Enables background task logging in Event Viewer.

SYNTAX

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.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Disable-AppBackgroundTaskDiagnosticLog

© 2017 Microsoft