Disable-AppBackgroundTaskDiagnosticLog is accessible with the help of AppBackgroundTask module. To configure AppBackgroundTask, go through this link.
Synopsis
Disables background task logging in Event Viewer.
Description
The Disable-AppBackgroundTaskDiagnosticLog cmdlet disables background task logging in Event Viewer. You must have administrator access to disable 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? false
Syntax
Disable-AppBackgroundTaskDiagnosticLog [-WhatIf] [-Confirm] [<CommonParameters>]
—————-Example 1—————-
Disable background task logging
PS C:> Disable-AppBackgroundTaskDiagnosticLog
This command turns off background task logging in Event Viewer.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Disable-AppBackgroundTaskDiagnosticLog
You can also read about
- Enable-AppBackgroundTaskDiagnosticLog