-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Get-FileHash holds the file open #12473
Copy link
Copy link
Closed
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-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
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-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
Expected behaviour: the file is renamed.
Actual behaviour: An exception
Rename-Item : The process cannot access the file because it is being used by another process.Get-FileHash writes output to the pipeline before closing the file handle.