GeezerVison is showing github.com — Fix Windows Event Log channel isolation semantics by Robo210 · Pull Request #6956 · PowerShell/PowerShell
Conversation
Remove isolation attribute from Analytic and Debug channels. These channel types always have an isolation of Custom, regardless of what is put here in the manifest.
Since no events are being written to the Admin channel currently, remove it. This avoids the Windows Event Log pre-allocating a file for the channel.
PR Summary
Avoid setting incorrect values in the ETW manifest that get silently ignored by mc/wevtutil.
PR Checklist
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Remove isolation attribute from Analytic and Debug channels. These channel types always have an isolation of Custom.
The Admin channel was enabled by default, but the comments for the channel indicated that it should be off by default and thus it is OK to use a huge file size and have it stop collecting events when the size is reached. This looks like a copy/paste error where the logging element was copied from a channel with a different isolation type, so fix it by duplicating the Operational channel's logging element instead.
Since no events are being written to the Admin channel currently, set it to disabled by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no reason to have an admin channel, it's not used for any events and I see no indication that it will change.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
@@ -2264,23 +2265,19 @@ |
|
|
</channel>
|
|
|
<channel
|
|
|
chid="C_ADMIN"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there are no events referencing this channel, it should simply be removed, not disabled.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The admin channel is not used by any events, so remove it.
|
|
</events>
|
|
|
<channels>
|
|
|
<!--There are two channels defined for Windows PowerShell instrumentation
|
|
|
<!--There are four channels defined for Windows PowerShell instrumentation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I should have mentioned this before, you'll want to remove these comments around Admin as well.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Reopen The PR to restart CI Appveyor.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
daxian-dbw reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Thatgfsj (Thatgfsj)
pushed a commit
to Thatgfsj-contribs/PowerShell
that referenced
this pull request
Aug 6, 2026
- Remove isolation attribute from Analytic and Debug channels. These channel types always have an isolation of Custom, regardless of what is put here in the manifest.
- Since no events are being written to the Admin channel currently, remove it. This avoids the Windows Event Log pre-allocating a file for the channel.
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|