Disable-WebRequestTracing

Disables Request Tracing for the specified site.

Syntax

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

Description

Disables Request Tracing for the specified site, but does not remove Request Tracing settings.

Examples

-------------- EXAMPLE 1: Disabling Request Tracing for the "Default Web Site" --------------

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

Disables Request Tracing for the Default Web Site.

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

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

  • Request Tracing settings can be removed by using theT:Microsoft.IIs.PowerShell.Provider.Clear-WebRequestTracingSettingscmdlet.