PowerShell: Find Open Files

To find open files on a remote system, use openfiles.exe and convert the results to rich objects. Here is a sample (replace “comp1” with the name of a remote computer you have access permissions):

PS> openfiles /Query /S comp1 /FO CSV /V | ConvertFrom-Csv | Out-GridView

Leave a Reply

Your email address will not be published.