
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
Micrsoft Defender for Endpoints
We use Microsoft Defender for endpoints on our physical workstations. I'm now looking at it for our servers. The servers...
Sync Active directory user data with SharePoint
If you want to sync standard common attributes from active directory to sharepoint. Its easy, AD sync to Azure AD...
Microsoft graph API to access sharepoint
Recently I've had to setup a few different app registration using Azure AD to access sharepoint sites. Once you get...
SQL upgrades
We have a few SQL servers that need to be upgraded before they go end of life. We are looking...
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...
2 thoughts on “Get open files on a remote server with powershell”