Here is the PowerShell script to force close programs that lock some Windows file. This can be usefull in many situations, for me it was necessary before updating IBM Cognos PowerPlay cubes. As some programs (for example IBM PowerPlay) can lock it, and do not allow any modifications: delete, copy