Close a file on a network mapped drive

1

We have some shared folders that we use at work to transfer and edit files.

This is a network mapped drive, not an actual shared folder where we put files in.

Sometimes people forget to close the files they were using so we are stuck waiting for them to close them, it can take hours before they are back in their desk.

Is there a way to close a file that is opened in another computer?

I tried this: Remotely close open shared files but it applies to shared files not mapped drives.

Jimmy_A

Posted 2018-09-28T11:46:08.810

Reputation: 972

What type of files? – Dave – 2018-09-28T11:50:20.850

Using elevated PowerShell you may be able to close such files using Close-SmbOpenFile. See this article and test if it works for you. However, forcefully closing files may lose unsaved work.

– harrymc – 2018-09-28T12:20:52.773

@Dave Excel files mostly. – Jimmy_A – 2018-09-28T13:03:32.500

@harrymc Unsaved work isn't an issue as it is automatically saved every few minutes. I will give it a try – Jimmy_A – 2018-09-28T13:04:12.193

@harrymc According to this. XXXX-SmbOpenFile is available from Windows 8.1 and later versions

– Jimmy_A – 2018-09-28T13:10:10.080

There are equivalents on Windows 7, but they must be run on the server where the share is defined. – harrymc – 2018-09-28T14:02:23.870

No answers