Powershell Because it is being used by another process: Why There Isn't a No-Dependency, One Line Powershell Solution While Powershell is incredibly flexible, the openness lends itself to be non-specific in some cases, such as for finding out what is keeping a lock on a file.