Get-CentralW3Clogging

Determine if Central W3C logging is ‘per site’ or ‘per server’

Import-Module WebAdministration
$LogConfig = Get-WebConfigurationProperty "</code>system.applicationHost/log<code>" -name </code><code>centralLogFileMode

if ($LogConfig -eq '0') {Write-Host "Central W3C logging is configured 'per site'"}
if ($LogConfig -eq '0') {Write-Host "Central W3C logging is configured 'centralbinary'"}
if ($LogConfig -eq '0') {Write-Host "Central W3C logging is configured 'centralw3c'"}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top