I have a situation where people are connected to files on a share and it's blocking me from overwriting the file. I'm trying to write a method that will look to see if a filePath that I provide is currently locked in this way and close the network session of this resource.
I looked at the ADSI Winnt provider but the Resources.Remove member isn't implemented. Then I looked at Win32_ServerSession and while I am able to use Delete member, it kills all of the resources for a given user. I need to figure out how to be more specific.
I've been walking GetRelationsShips and Properties but I'm just stumped at the moment.