
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
How to manage the local administrators group on Azure AD joined devices
After a device is deployed likely using autopilot, sometime you have a need to add an AzureAD user to the...
Azure AD and Windows hello for business, SSO for on-premises resources
We disabled WFB when we first rolled out autopilot because we are not ready to deploy and support passwordless at...
Recover Microsoft forms from old users
Microsoft forms are a great way to collect data from the user. However, what happens when the user leaves the...
Creating a document management system with SharePoint
Searching for documents can be a cumbersome and time-consuming task, especially if there is no proper system in place for...
Internal certificates for desktop phones
We are looking at a new cloud based phone system. Most use Poly or Yealink phones, we use 802.1x on...
Intune certificate connector
upgrading to certificate connector 6.2 that is required in Sept 2022, has broke our NDES for intune. I'm collecting all...
2 thoughts on “Get open files on a remote server with powershell”