Since from Sitecore content editor at a time can see linked items only for individual items, so thought to share with all.
Below is the script hope, this will help
$allImages = Get - ChildItem - Path 'master:/sitecore/media library/Images' - recurse
$results = @();
$allImages | ForEach - Object {
$sproperties = @{
SID = $_.ID
}
$referer = Get - ItemReferrer - ID $sproperties.SID
$properties = @{
Name = $_.Name
ID = $_.ID
Path = $_.ItemPath
LinkedItemIds = $referer.ID
}
$results += New - Object psobject - Property $properties
}
$results | Select - Object - Property Name, Path, LinkedItemIds
No comments:
Post a Comment