Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Changing Directory for Failed Request Tracing

$
0
0

I am trying to script the changing of the directory used for the Failed request tracing using the appcmd.exe.  When I run the following:

set FailedRequest="L:\IISLogs\FailedReqLogFiles"

%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/sites -siteDefaults.traceFailedRequestsLogging.directory:"%FailedRequest%"

The command runs as expected, but when I go into IIS Manager, and check failed request tracing the folder hasn't been changed.  Am I missing something?

Environment: Windows Server 2008 R2 SP1 IIS 7.5

Thanks.

DJ


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>