Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Locksmith | PowerShell #28013

Closed
MFKDGAF opened this issue Aug 16, 2023 · 2 comments
Closed

File Locksmith | PowerShell #28013

MFKDGAF opened this issue Aug 16, 2023 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@MFKDGAF
Copy link

MFKDGAF commented Aug 16, 2023

Description of the new feature / enhancement

Properly report when a file is open in PowerShell 5.1 and 7.x window instead of reporting that Windows Explorer has the file opened/locked.

Scenario when this would be used?

When trying to delete or move a file or directory that is open in PowerShell Window and you not relaizing it.

Supporting information

I had a PowerShell file opened in a PowerShell window (.\PowerShell-File.ps1) and when I went to delete or move the directory it couldn't. File Locksmith was saying Windows Explorer had the file locked. I restarted Windows Explorer but the file was still locked and File Locksmith was still reporting that Windows Explorer had the file locked (which makes sense why restarting Windows Explorer didn't unlock the file).

This happened on Windows 10 using PowerShell 5.1. I navigated to the directory that the script was in (C:\Temp). Then went to File > Open Windows PowerShell > Open Windows PowerShell. I'm not sure if the problem would have happen if the PowerShell script was ran in Windows Terminal.

@MFKDGAF MFKDGAF added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Aug 16, 2023
@Aaron-Junker
Copy link
Collaborator

/dup #22315

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants