Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Get-WinEvent Not releasing file lock #3979

Copy link
Copy link
@matthastings

Description

@matthastings
Issue body actions

Steps to reproduce

Using Get-WinEvent to parse an event tracing log (ETL) file causing the file to get locked past the point of use.


Get-WinEvent -Path testfile.etl -Oldest
Remove-Item -Force testfile.etl

Expected behavior

Testfile.etl should be deleted

Actual behavior

Produces an error that the file cannot be removed because it is being used by another process. Closing PowerShell is the only way to release the lock and then delete the file. 

Environment data

Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      5.0.10586.117                                                                           
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
BuildVersion                   10.0.10586.117                                                                          
CLRVersion                     4.0.30319.17929                                                                         
WSManStackVersion              3.0                                                                                     
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1                                                                                 

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.