Public/Get-RdlcEmbeddedImage.ps1
function Get-RdlcEmbeddedImage { param ( [Parameter(Mandatory, Position=0, ValueFromPipeline, ValueFromPipelineByPropertyName)] [Alias('FullName')] [string[]]$Path ) process { $Path.ForEach{ $CurrentPath = $_ Select-Xml ` -Path $CurrentPath ` -XPath '//sql:EmbeddedImage' ` -Namespace @{'sql' = 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition'} | ForEach-Object { [PSCustomObject]@{ PSTypeName = 'UncommonSense.Rdlc.Utils.EmbeddedImage' Path = $CurrentPath Name = $_.Node.GetAttribute('Name') } } } } } |