Reference for Win32_NTEventlogFile
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Event Logs

Description (Beschreibung):

The Win32_NTEventlogFile WMI class represents a logical file or directory of Windows NT events.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_NTEventlogFileYesYesYesYes-

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AccessMaskYesYesYesYes-
ArchiveYesYesYesYes-
CaptionYesYesYesYes-
CompressedYesYesYesYes-
CompressionMethodYesYesYesYes-
CreationClassNameYesYesYesYes-
CreationDateYesYesYesYes-
CSCreationClassNameYesYesYesYes-
CSNameYesYesYesYes-
DescriptionYesYesYesYes-
DriveYesYesYesYes-
EightDotThreeFileNameYesYesYesYes-
EncryptedYesYesYesYes-
EncryptionMethodYesYesYesYes-
ExtensionYesYesYesYes-
FileNameYesYesYesYes-
FileSizeYesYesYesYes-
FileTypeYesYesYesYes-
FSCreationClassNameYesYesYesYes-
FSNameYesYesYesYes-
HiddenYesYesYesYes-
InstallDateYesYesYesYes-
InUseCountYesYesYesYes-
LastAccessedYesYesYesYes-
LastModifiedYesYesYesYes-
LogfileNameYesYesYesYes-
ManufacturerYesYesYesYes-
MaxFileSizeYesYesYesYes-
NameYesYesYesYes-
NumberOfRecordsYesYesYesYes-
OverwriteOutDatedYesYesYesYes-
OverWritePolicyYesYesYesYes-
PathYesYesYesYes-
ReadableYesYesYesYes-
SourcesYesYesYesYes-
StatusYesYesYesYes-
SystemYesYesYesYes-
VersionYesYesYesYes-
WriteableYesYesYesYes-

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
BackupEventlogYesYesYesYes-
ChangeSecurityPermissionsYesYesYesYes-
ChangeSecurityPermissionsExYesYesYesYes-
ClearEventlogYesYesYesYes-
CompressYesYesYesYes-
CompressExYesYesYesYes-
CopyYesYesYesYes-
CopyExYesYesYesYes-
DeleteYesYesYesYes-
DeleteExYesYesYesYes-
GetEffectivePermissionYesYesYesYes-
RenameYesYesYesYes-
TakeOwnerShipYesYesYesYes-
TakeOwnerShipExYesYesYesYes-
UncompressYesYesYesYes-
UncompressExYesYesYesYes-

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_NTEventLogFile")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation