Get Item based on item id
Get-Item -Path “master:” -ID “{0DE95AE4-41AB-4D01-9EB0-67441B7C2425}“
Get item id based on path
Get-Item Path “master:/sitecore/content/Sites/Site Data/ACP Components/Sample Data”
Get item properties
Get-Item -Path “master:/sitecore/content/Sites/ Site Data/Components Data/sample data” | select Name, Id, __Updated,__Created
Get item based on template name
Get-Item -Path “master:” -Query “/sitecore/content/Sites/Site Data/Components//*[@@templatename=’Component Parmaters’]”
Get item or items based on template id
Get-Item -Path “master:” -Query “/sitecore/content/Sites/Site Data/ACP Components//*[@@templateid=’{A3AEC2DA-31A8-46F8-ADB3-07697886321A}‘]”
Show list view or download the output with required properties or fields directly on the Item
Here Product is Sitecore bucket folder and items are created by code automation and we are only interested in the items with specific template ID
$allItems = Get-ChildItem “master:/sitecore/content/Sitecore/SiteA/Product/2017” -recurse | where-object {$_.TemplateID -eq “{42B5CFEF-AB2D-4E1F-A8D0-7DCD6A3A9DEH}”}
$allItems | Show-ListView -Property Name, Id, __Updated,__Created