Forum Discussion
Aaron2128
May 21, 2024Copper Contributor
File properties information
Hi all, I'm looking for the ways to scan the repo to get the file properties information in any environment using Microsoft solutions. File properties information such as file name, file type, size...
vicwingsing
May 21, 2024Iron Contributor
hi Aaron,
Assuming that the "any environment" you mentioned here are all Microsoft environments, then there are multiple ways for you to be able to extract this data.
If the files are sitting in Azure File storage then you can use the Azure APIs: https://learn.microsoft.com/en-us/rest/api/storageservices/get-file-properties
If the files are sitting in Microsoft 365, you can use Content Search in the Compliance center: https://learn.microsoft.com/en-us/purview/ediscovery-content-search
If the files are sitting inside Windows 10/11 you can use Powershell and point it to a location and get this data. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.4