I have troubles to find a solution for my problem (I am a really beginner of powershell).
I have to count the Office files which are open on a server.
A Service account is connected to a Windows server. A tool works on this session and open a queue of word documents, do such stuff and close the word files. Sometimes the tool can not close the files and then there are many open word files open on the server and it does not work. So I am searching for a solution to check automatically how many open Word files are open with this user.