Enable-AppBackgroundTaskDiagnosticLog is accessible with the help of AppBackgroundTask module. To configure AppBackgroundTask, go through this link.
Synopsis
Enables background task logging in Event Viewer.
Description
The Enable-AppBackgroundTaskDiagnosticLog cmdlet enables background task logging in Event Viewer. You must have administrator access to enable background task logging.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
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.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? falseSyntax
Enable-AppBackgroundTaskDiagnosticLog [-WhatIf] [-Confirm] [<CommonParameters>]
—————Example 1—————
Enable background task logging
PS C:> Enable-AppBackgroundTaskDiagnosticLog
This command turns on background task logging in Event Viewer.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Enable-AppBackgroundTaskDiagnosticLog
You can also read about
- Disable-AppBackgroundTaskDiagnosticLog

