For remote machines, if the file is on a network share, you can access the domain controller/member server through computer management (Start->Run->compmgmt.msc) if you have the credentials.
Right-click on the top of the hierarchy (Computer Management (Local)), and select "Connect to another computer". Locate the appropriate server with the file and once connected, expand to Shared Folders -> Open Files. You can then right click any file and disconnect a user from it.
This method only works if you have access to the server. Locally, use the previously mentioned Unlocker.