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

Scroll to Top