NAME
Clear-DcsLog
SYNOPSIS
Clears all messages from the Event Log.
SYNTAX
Clear-DcsLog [ -Yes] [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
DESCRIPTION
Clears all messages from the Event Log.
PARAMETERS
- -Yes<SwitchParameter>
- Deleting log messages is an operation that requires confirmation. Specify this parameter to confirm your intention to permanently delete all log messages and to prevent user interaction during scripted scenarios.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection will be used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -WhatIf<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Confirm<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
OUTPUTS
NOTES
EXAMPLES
-------------- Example 1 Clears the Event Log --------------
Clear-DcsLog -Yes
The cmdlet is invoked to clear all Event Log messages. The parameter Yes is included to confirm the intention to permanently remove all messages and to prevent user interaction while scripts are running.