[Script Of Mar. 16] How to know the process locking a file


Script Download:  
The script is available for download from https://code.msdn.microsoft.com/How-to-know-the-process-704839f4. You can also use  Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment. 

The C# sample code developed in .NET Framework 4.0 would help in finding out which is the process that is having a lock on a file.

You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery

Comments (0)

Skip to main content