I have started a new job and been asked to clean up approximately 300 crystal reports. Ideally I would be able to source the name and fields used in each report without opening then individually.
I found some code and it seems that it’s executing, but not recording the output anywhere. I’m very new to PowerShell so struggling a bit!
Get-ChildItem 'S:\Reports\SITE' *.rpt -Recurse | % { $_.Database.Tables | Select-Object location -Expand location $_.Subreports | % { $_.Database.Tables | Select-Object location -Expand location } } | Select-Object location -Unique | Sort-Object Location