-
Notifications
You must be signed in to change notification settings - Fork 82
WindowsEventLog
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| LogName | Key | String | Specifies the name of a valid event log | |
| IsEnabled | Write | Boolean | Specifies whether the specified event log should be enabled or disabled | |
| MaximumSizeInBytes | Write | SInt64 | Specifies the maximum size in bytes for the specified event log | |
| LogMode | Write | String | Specifies the log mode for the specified event log |
AutoBackup, Circular, Retain
|
| SecurityDescriptor | Write | String | Specifies the SDDL for the specified event log | |
| LogFilePath | Write | String | Specifies the file name and path for the specified event log | |
| LogRetentionDays | Write | SInt32 | Specifies the number of days to retain events when the log mode is AutoBackup | |
| RegisteredSource | Write | String | Specifies the name of an event source to register for the specified event log | |
| CategoryResourceFile | Write | String | Specifies the category resource file for the event source | |
| MessageResourceFile | Write | String | Specifies the message resource file for the event source | |
| ParameterResourceFile | Write | String | Specifies the parameter resource file for the event source | |
| RestrictGuestAccess | Write | Boolean | Specifies whether to allow guests to have access to the specified event log |
This resource is used to configure the settings of an event log.
If you choose to restrict guest access to an event log, the RestrictGuestAccess registry key will be configured and the event log's DACL will be checked and updated to ensure the built-in Guests group has been removed. Conversely, if you choose to allow guest access, the registry key will be configured and the DACL will be checked and updated to ensure the built-in Guests group has been added.
This DACL behavior also applies if you configure your own custom DACL via the SecurityDescriptor property and a warning will be displayed to notify you of the change.
The PowerShell cmdlets that define event log sources do not check for the presence of the resource file on the computer and this resource follows the same paradigm. If you choose to create your own resource files and want to register them with the event source, you must ensure the files have been copied to the computer via a DSC File resource definition or equivalent.
- Computer
- IEEnhancedSecurityConfiguration
- OfflineDomainJoin
- PendingReboot
- PowerPlan
- PowerShellExecutionPolicy
- PSResourceRepository
- RemoteDesktopAdmin
- ScheduledTask
- SmbServerConfiguration
- SmbShare
- SystemLocale
- SystemProtection
- SystemRestorePoint
- TimeZone
- UserAccountControl
- VirtualMemory
- WindowsCapability
- WindowsEventLog