Disable-WebRequestTracing

Disables request tracing for a website.

Syntax

Disable-WebRequestTracing
       [[-Name] <String>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-WebRequestTracing cmdlet disables request tracing for the specified website, but does not remove request tracing settings.

Examples

Example 1: Disable request tracing for the default website

IIS:\> Disable-WebRequestTracing -Name "Default Web Site"

This command disables request tracing for the default website.

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of site for which request tracing is disabled.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False

Notes

  • You can use the Clear-WebRequestTracingSetting cmdlet to remove request tracing settings.