Enable-AppBackgroundTaskDiagnosticLog
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 |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | 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 |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for