demo.ps1
$ReportLayoutsDirectory = 'bart:/ReportLayouts' Get-ChildItem -Path $ReportLayoutsDirectory | ForEach-Object { [PSCustomObject]@{ Name = $_.Name DataSetFields = $_ | Get-RdlcDatasetField | Select-Object -ExcludeProperty Path ReportParameters = $_ | Get-RdlcReportParameter | Select-Object -ExcludeProperty Path References = $_ | Get-RdlcReference | Select-Object -ExcludeProperty Path EmbeddedImages = $_ | Get-RdlcEmbeddedImage | Select-Object -ExcludeProperty Path EmbeddedImageReferences = $_ | Get-RdlcEmbeddedImageReference | Select-Object -ExcludeProperty Path ReferencesOK = $_ | Test-RdlcReference EmbeddedImagesOK = $_ | Test-RdlcEmbeddedImageReference } | Out-Null } |