PowerShell Logo Small

Enable-WebRequestTracing



This is the built-in help made by Microsoft for the command 'Enable-WebRequestTracing', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Enables Request Tracing for the site specified.

SYNTAX


Enable-WebRequestTracing [[-Name] <String>] [-CustomActions [<SwitchParameter>]] [-Directory <String>] [-MaxLogFiles <UInt32>]
[-MaxLogFileSize <UInt32>] [-StatusCodes <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


This cmdlet enables Request Tracing, and automatically configures a site rule that traces responses that have a status value between 400 and
600.



<

RELATED LINKS

Disable-WebRequestTracing

REMARKS

<

Examples


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

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



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