→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
06-14-2017 09:42 PM
05-12-2023 10:47 AM - edited 05-12-2023 10:48 AM
Hi there,
Lansweeper has a feature to scan file properties.
Scanning file properties with custom file scanning
However, to retrieve properties of files in any directory other than Program Files, Program Files (x86) or the Windows directory, you must submit the exact file path, including the drive.
For performance reasons, file scanning only queries specific file paths. Scanning all files within a folder or listing all files with a specific extension (extension based scanning) is not possible with file scanning, though you could use a deployment package to perform such file searches.
05-11-2023 09:45 PM
Good question; I have the same one. Did you get a proper resolution? Thanks.
05-12-2023 11:55 AM
Hi ,
Not sure what version of Outlook you are using but you could run a script similar to this from - outlook - Registry key to find pst locations? - Stack Overflow , setup a deployment to run on all your assets , saving the data to a shared area , script below saves to desktop??
'****************************Currently attached archives' | Out-File
$Env:UserProfile\Desktop\ArchiveHistory.txt -append
#NOTE: This launches Outlook if it is not already running.
$Outlook = New-Object -Comobject Outlook.Application
$Namespace = $Outlook.GetNamespace('MAPI')
$Mailboxes = $Namespace.Stores | where {$_.ExchangeStoreType -eq 1} | Select-Object DisplayName
$AttachedArchives = $Namespace.Stores | where {$_.ExchangeStoreType -eq 3} | Select-Object DisplayName,FilePath
$MailBoxes | Out-File -FilePath $Env:UserProfile\Desktop\OutlookMailboxes.txt
$AttachedArchives | Out-File -FilePath $Env:UserProfile\Desktop\OutlookAttachedArchives.txt
'****************************Archive History for Office 2007' | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt -append
get-item HKCU:\software\Microsoft\Office\12.0\Outlook\Catalog | select -expandProperty property | where {$_ -match '.pst$'} | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt
'****************************Archive History for Office 2010' | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt -append
get-item HKCU:\software\Microsoft\Office\14.0\Outlook\Catalog | select -expandProperty property | where {$_ -match '.pst$'} | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt
'****************************Archive History for Office 2013' | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt -append
get-item HKCU:\software\Microsoft\Office\15.0\Outlook\Search\Catalog | select -expandProperty property | where {$_ -match '.pst$'} | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt -append
'****************************Archive History for Office 2016' | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt -append
get-item HKCU:\software\Microsoft\Office\16.0\Outlook\Search\Catalog | select -expandProperty property | where {$_ -match '.pst$'} | Out-File $Env:UserProfile\Desktop\ArchiveHistory.txt -append
05-12-2023 03:10 PM
This looks and works great. I'll figure out the best way to incorporate this into our project. Thank you.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now