
Get open files on a remote server with powershell
I needed to send a list of open files from our file server to the helpdesk so they could contact the users that were still using the old systems. I wanted to give them something other than a screen shot so I went digging for a powershell script. I found this which uses openfile.exe but within powershell pipes the output to a nice grid view.
openfiles /Query /S 2K12R2 /FO CSV /V | ConvertFrom-Csv | Out-GridView
Source: Get open files on a remote server – It For DummiesIt For Dummies
I took it and tweaked it to a file so the helpdesk could open it in excel
openfiles /Query /S Server /FO CSV /V | out-file c:\temp\files.csv
More Stories
Least privileged roles by task in Azure Active Directory
As we continue to improve our process and work through least privileged roles. I find this Microsoft doc to be...
How to configuration SMB3 and encryption
We have not enforced SMB3 and encryption, but have now started a SOX review and need data copied between servers...
Windows and SQL editions comparison
Capturing data on the limits of both windows server and SQL based on the edition for quick reference. Comparison of...
Enable passwordless security key sign-in to on-premises resources by using Azure AD
As we transition to Azure AD computers and leave domain joined PCs behind. Most of our data and applications are...
windows update for business and intune
We are having issues with machines not patching even with the Intune policies set. I'm documenting different post I've found...
2 thoughts on “Get open files on a remote server with powershell”