How To Disconnect Users Accessing a Windows Shared Folder using PowerShell

Posted by Martin Hollingsworth on Server Fault See other posts from Server Fault or by Martin Hollingsworth
Published on 2010-06-10T00:03:35Z Indexed on 2010/06/10 0:12 UTC
Read the original article Hit count: 660

Filed under:
|
|

The Determine Users Accessing a Shared Folder Using PowerShell question has a good answer. Continuing on from that How do you disconnect the users accessing the share using a powershell script.

There is a Windows command line utility called OpenFiles but I'd prefer a PowerShell / WMI solution.

© Server Fault or respective owner

Related posts about Windows

Related posts about powershell