Questions tagged [powershell-extensions]
Anything related to the Sitecore PowerShell Extensions (SPE) module
362
questions
9
votes
3
answers
3k
views
Create new language version for content branch
Is there a way in Sitecore Powershell Extensions to create new language versions of a branch in the content tree? I need it to copy exactly the presentation details set on the current language to the ...
6
votes
3
answers
2k
views
How to reset DisplayName to empty using Sitecore PowerShell Extensions?
I wanted to know better way to reset Display Name to empty using PowerShell scripts.
I have written below script..
$item = Get-Item "/sitecore/content/home"
$item.Editing.BeginEdit()
$item["{...
9
votes
3
answers
457
views
Where should I install Powershell module for SXA?
Solution can be installed on many environments - QA, Staging, Prod. In every of these environments Sitecore instances have different roles - CD, CM, Job, Publishing and etc.
Should I install ...
11
votes
2
answers
1k
views
Can you run Sitecore Powershell without triggering Sitecore events?
I want to write a script which could potentially clean up a load of unused assets, but I would like it not to trigger events (index rebuilds etc).
Is there a way to say "do this silently" in a ...
11
votes
1
answer
960
views
Update all users in the Administrator Role
I want to be able to update all users who have the Administrator checkbox selected without manually going through each of the user. In the same script I would like to add them to another Role. This ...
7
votes
3
answers
4k
views
How to get list of all the renderings that has been configured to use data source
We are almost complete with a large project.
I am trying to find out which rendering in the page has been configured to use data source using a Powershell script. So that we can run in both UAT and ...
6
votes
2
answers
498
views
Getting locked items SPE
I have a multisite Sitecore instance and I would like to get all locked items from all different sites and users and unlock them, is it possible to do this job using Sitecore Powershell Extensions?
4
votes
1
answer
1k
views
How do I parse a Rich Text in PowerShell in order to replace elements?
I have a requirement to read each rich text field and then edit the content with unordered lists rather than ordered.
9
votes
1
answer
841
views
Update same rendering of several templates using SPE
I have a bunch of templates that have a Coveo Search Box View rendering associated with the standard values. I need to update the property "Reveal Advanced Query Suggestions" of all of them(a lot of ...
6
votes
1
answer
820
views
Unable to get value of $_.Source using SPE
I have a rich text field in my user defined template and I want to replace the source value of the rich text field. Below is my query where I'm able to read Name, type etc, however $_.source is ...
8
votes
2
answers
1k
views
How to create Sitecore Context Item to copy Item Path using SPE?
How to create Sitecore Context Item to copy Item Path using Sitecore PowerShell Extensions.
Like in below screen we have for Layout Copy Renderings and Quick download package. Sometimes it requires ...
41
votes
5
answers
4k
views
How can I programmatically add a rendering to all of my content items?
I need to add a rendering to all of the pages in my Sitecore tree (i.e., items that have renderings, have a layout set, and live under /sitecore/Content). Content items that don't have renderings or a ...