Initializes items with the PowerShell automatic properties for each field.
Initialize-Item -Item <Item>
Initialize-Item -SearchResultItem <SearchResultItem>
The Initialize-Item command wraps Sitecore item with PowerShell property equivalents of fields for easy assignment of values to fields and automatic saving. This command can also be used to translate the the "Sitecore.ContentSearch.SearchTypes.SearchResultItem" items obtained from the Find-Item command into full Sitecore Items. The alias for the command is Wrap-Item.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
The following abbreviations are aliases for this cmdlet:
Wrap-Item
The item to be wrapped/initialized.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
false
The item obtained from Find-Item command to be translated into a sitecore item.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
The input type is the type of the objects that you can pipe to the cmdlet.
Sitecore.Data.Items.Item
Sitecore.ContentSearch.SearchTypes.SearchResultItem
The output type is the type of the objects that the cmdlet emits.
Sitecore.Data.Items.Item
Help Author: Adam Najmanowicz, Michael West
Initialize the item obtained directly through the Sitecore API with additional PowerShell properties
Get-Item
Get-ChildItem