Share via


LogFileDirectory

LogFileDirectory specifies the default logging directory, in which the log file and logging-related support files are stored.

important Important The log-file directory that is specified must be on the local computer.

Attribute Name Attribute Value
XML Data Type expandsz
WMI Data Type
String
ADSI Data Type expandsz
ABO Data Type expandsz
ABO Metabase identifier
MD_LOGFILE_DIRECTORY
Attributes INHERIT
Default Value %windir%\system32\logfiles
MetaFlagsEx CACHE_PROPERTY_MODIFIED
User Type IIS_MD_UT_SERVER
StartingNumber Not applicable
EndingNumber Not applicable
ID 4001

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type
/LM/W3SVC/n IIsWebServer
/LM/MSFTPSVC/n IIsFtpServer
/LM/W3SVC IIsWebService
/LM/MSFTPSVC IIsFtpService
/LM/NNTPSVC IIsNntpService
/LM/NNTPSVC/n IIsNntpServer
/LM/SMTPSVC IIsSmtpService
/LM/SMTPSVC/n IIsSmtpServer

Code Example

For general code examples, please see Code Examples to Configure Metabase Properties