Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore Serialization Powershell [closed]

I need to serialize some Items with Sitecore Powershell Script.

I need to:

  • Serialize an Item
  • Create a folder in filesystem (C:/serialisation/1) and move the results in the serialization folder to this folder

Can someone write how the powershell script will look like? Links to resources about serialization with Powershell will also be appreciated.

like image 592
EngelbertCoder Avatar asked Nov 23 '25 15:11

EngelbertCoder


1 Answers

I suppose you know about Sitecore Powershell Extensions.

Serialization of the item:

# Serialization
Get-Item -Path "master:\templates\spe\" | Serialize-Item -Recurse

Copy files:

#copy
Copy-Item -Path C:\fso\20110314.log -Destination c:\fsox\mylog.log

And you can find an explanation in this video Sitecore PowerShell Extensions - Packages and Serialization.

And here is a blog post explaining serialization and deserialization with Sitecore Powershell Extensions.

like image 133
Marek Musielak Avatar answered Nov 26 '25 18:11

Marek Musielak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!