powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Enable-WebRequestTracing



NAME
Enable-WebRequestTracing

SYNOPSIS
Enables the Request Tracing feature.

SYNTAX
Enable-WebRequestTracing [[-Name] ] [-Directory ] [-MaxLogFiles ] [-MaxLogFileSize
] [-CustomActions] [-StatusCodes ] [-WarningAction ] [-WarningVariable ] [ Parameters>]


DESCRIPTION
This command enables the Request Tracing feature and automatically configures a site rule that traces responses tha
t have a status between 400 and 600.


PARAMETERS
-Name
The name of the site for which tracing is enabled.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Directory
The directory in which to store Request Tracing log files.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-MaxLogFiles
The maximum number of log files to store.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-MaxLogFileSize
The maximum file size of a single Request Tracing log file.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-CustomActions
Specifies an action taken when a Request Tracing log file is generated.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-StatusCodes
Status codes for which a default Request Tracing rule should be configured. The default is 500.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




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

C:\PS>Enable-WebRequestTracing -Name "Default Web Site"


Enables Request Tracing for the Default Web Site, which also automatically creates a rule that traces 500 errors.






RELATED LINKS
Disable-WebRequestTracing