I'm trying to use get-smbopenfile to look at open files on a remote server then be able to close them. Example DATASERVER is running Server 2008 so I can't run get-smbopenfile on that. I want to run it on another server called server1 that it can run on.
I want to see what files are open at location \\dataserver\shared\work files.
Then I want to close all files at that location every night around 7:00pm.