Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [powershell-extensions]

Anything related to the Sitecore PowerShell Extensions (SPE) module

85 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
1 answer
928 views

Sitecore Powershell SPE 5.1 "Could not validate access using the provided credentials" error

I have written the SPE powershell script in my local Sitecore 9.1.1 sandbox environment and trying to execute, it is asking session elevate privilege to enter credentials. Even though I am entering ...
Prabhu Ranganathan's user avatar
7 votes
1 answer
530 views

Good workflow for SXA PowerShell scripts

I am trying to find a good way to work with PowerShell scripts that we use for SXA such as for scaffolding. I have tried the PowerShell ISE client that was built into Sitecore but sometimes the UI was ...
Barsonax's user avatar
  • 173
5 votes
0 answers
271 views

How to add experience editor button with Sitecore Powershell?

I've created a script to aid editors publishing components on a page, and I've added it to the content editor item context menu, but I can't work out how to add a button to do the same from the ...
James Walford's user avatar
5 votes
0 answers
228 views

CI/CD Sitecore challenge: going from "wipe" to "overwrite"

We are set to release a large Sitecore-based system in a week. Presently the CI/CD process works by effectively republishing everything from a git repository as the source (we use TDS for day-to-day ...
Eric Smith's user avatar
4 votes
0 answers
91 views

Is it possible to install PowerShell Module for Sitecore and SPE Remoting module remotely?

Is it possible to install the PowerShell Module for Sitecore and SPE Remoting module remotely? I'm wondering if it is possible to install it via ansible to a new Sitecore instance and then remotely ...
Andrey Egorov's user avatar
3 votes
1 answer
334 views

How to Find the unique rendering ID for a placeholder

We are currently upgrading a site from 8X to 10.2. We are trying to change the dynamic placeholders as per 10.2. But 8.2 dynamic placeholders are of format- /a/b_1/c_1, /a/b_1/c_2, /a/b_2/c_3. We ...
Sylesh JL's user avatar
  • 179
3 votes
0 answers
219 views

Moving parent item and create alias

I'm working on cleaning up sitecore items where i have bunch of items sitting under various nodes so what i'm trying to archive is to move all under single folder and create alias on the original path....
Sitecore Dev's user avatar
3 votes
0 answers
382 views

Get workflow history for an item by itemid in sitecore powershell extension - Sitecore 8.1

I need to create a report by Sitecore Powershell Extension where I need to include the details of "Workflow Approver" and "Date on which workflow approved". I have got the list of referring items for ...
SumitK's user avatar
  • 751
3 votes
1 answer
413 views

How to remove duplicate dynamic placeholders from Final Layout using SPE?

We got duplicate dynamic placeholders assigned in Final Layout. How can I remove the duplicates from the Final Layouts in all the languages? This is how we are filtering out the placeholders ...
Amitabh Vyas's user avatar
  • 2,554
3 votes
0 answers
35 views

Restoring marketing taxonomies with Sitecore powershell extenstion

I am trying to automate Sitecore upgrade from 8.1 to 9.0.1. In Upgrade steps, There is one step restoring deleted marketing taxonomies, which can easily be done with Url navigation and click button on ...
OyeHarish's user avatar
  • 141
3 votes
0 answers
157 views

ShowFieldEditor on a media item detaching media

I have a simple script that we're running, where a content editor has bulk uploaded media and they want to go back through and provide attribution to the images (caption, alt text, photo credit) and ...
Chad Rickman's user avatar
3 votes
0 answers
2k views

Show-ListView called from action script display columns from parent Show-ListView

We're using Sitecore PowerShell Extensions to generate some reports. We have a problem when calling "Show-ListView" from the "Actions" script that is in the parent "Show-ListView" result. Looks ...
B.M's user avatar
  • 31
3 votes
0 answers
321 views

How to bulk upload media files and set each item's template to custom template?

I have a directory structure that looks like this: -- Folder 1 ---- Folder 2 ------- File 1 ---- Folder 3 ------- File 1 And so on with Folder 1 being the parent folder. When I upload the files from ...
uioporqwerty's user avatar
3 votes
1 answer
950 views

Get-ItemReferrer : Object reference not set to an instance of an object

I am working on Sitecore PowerShell Extensions 5.0.0.42513 with Sitecore 9.0. I have started facing issue as Get-ItemReferrer : Object reference not set to an instance of an object Also shown below ...
SumitK's user avatar
  • 751
2 votes
3 answers
65 views

Find items who content have 404 links

I'm running a script in which I'm trying to get the item whose content has broken links, (links that redirect the user to a page with 404 as response). But I always get the same result, no broken ...
Sergio Parissi Reyes's user avatar
2 votes
1 answer
721 views

Find Pages That Match Template Id and add a Value

Using Sitecore PowerShell Extension (SPE). New to SPE and I am trying to do this: If the template id matches && the item is expired && the content type of "video" is missing =...
RooksStrife's user avatar
2 votes
0 answers
186 views

Error while install a Sitecore content package using SPE in Sitecore XP 9.3

On day to day basis we need to install some content packages from one environment to another. For that we are using SPE module and the below script to install the package zip. But it usually fails due ...
Vaibhav's user avatar
  • 121
2 votes
0 answers
135 views

Can we copy entire master DB from staging to Dev using sitecore Powershell?

I am curious to know any such commands or way to copy master DB from one sitecore environment to another ? I have a clue of using Copy-Item however I don't have much idea on that.
Divyansh Gupta's user avatar
2 votes
0 answers
193 views

Unable to get xDB reports using Sitecore Powershell

I am trying to get the Page URL visits which we get from Experience Analytics dashboard using Powershell. Below screenshot specifies the data i am trying to access using Powershell. I found a link ...
Vinay Sankar's user avatar
2 votes
0 answers
203 views

How to create a Sitecore Module WDP packge **WITH** Sitecore items?

I was following the official documentation on the subject here https://doc.sitecore.com/developers/sat/20/sitecore-azure-toolkit/en/web-deploy-packages-for-a-module.html and realized that it looks ...
Hugo Santos's user avatar
  • 2,311
2 votes
0 answers
528 views

SPE Object reference not set to an instance of an object

In Sitecore 9.02 I get this error running any script in Powershell ISE. Console works fine. Stack trace: [NullReferenceException: Object reference not set to an instance of an object.] Cognifide....
Lex Raaphorst's user avatar
2 votes
0 answers
726 views

Security disabler doesn't operate in context of Unlock-Item comandlet?

Writing a script to allow editors to unlock an item locked by another user I used New-UsingBlock(New-Object -TypeName "Sitecore.SecurityModel.SecurityDisabler"){ $item | Unlock-Item } This didn't ...
James Walford's user avatar
2 votes
0 answers
2k views

SPE Remove-Rendering with -FinalLayout Removing all renderings from the Final Layout

I recently wrote my first Powershell script for removing an old rendering from a placeholder and replacing it with a new rendering. For some reason, when the rendering I need to remove is in the ...
Ryan Shohoney's user avatar
1 vote
4 answers
94 views

How to get all items and its field and value pair, based on specific template and the path of folder where its contained, using sitecore powershell

Question from .Sitecore PowerShell stater. I am using following script $eventsPath = "/sitecore/content/Global Content/Events" $templateId = "{EBE88C21-4035-4266-9647-B4C88F1BC000}"...
Raunak Basnet's user avatar
1 vote
1 answer
61 views

Find all the items and fields that have dropdown value not in selection list

I have duplicated the site to create new site. I am seeing on new site some values in drop down are coming from existing site. I want to find list of items and fields for which value are coming from ...
aman's user avatar
  • 11
1 vote
0 answers
100 views

Is there a way to install modules from PSGallery?

I have tried installing a script from PSGallery using multiple "tricks" to get around the Windows Security (that prevents accessing the default PS folder), as by default, it results in: ...
Eric Townsend's user avatar
1 vote
0 answers
41 views

Null exception been thrown when interacting with generated PowerShell report executed from context menu sitecore spe

When the report is generated by the PowerShell script that is executed from the context menu within content-editor, it typically provides interaction features like sorting, export choices, and item ...
Olivia's user avatar
  • 11
1 vote
0 answers
57 views

Error installing Sitecore PowerShell: "An entry with the same key already exists"

I am trying to install Sitecore PowerShell 6.4 version in our Sitecore 9.0.2 from the GitHub repository (https://github.com/SitecorePowerShell/Console/discussions/categories/general), but I am ...
Biswajit Nayak's user avatar
1 vote
2 answers
197 views

How can I get all sitecore download event tracking list of item which is not clicked yet (like zero visit items)

I am using Sitecore 10.2 having Sitecore Analytics enabled. Download events tracking analytics is enabled for all media items like(.pdf, .docs, .xls). How to get all media items which have not been ...
md shahbaj's user avatar
1 vote
0 answers
121 views

How to inspect vars / persist value tooltip window in PowerShell ISE?

After running a script in Sitecore PowerShell Extensions version 6.4.0.16859, I can hover over a variable to inspect its contents. However, it contains values that overflow out of my screen. I would ...
Marcel Gruber's user avatar
1 vote
3 answers
329 views

Unable to read Rendering Parameters template fields using powershell

There is a page template called X being used to create a number of pages. There are two renderings A and B being used on many pages that created from X page template. Now I want to set the one ...
Visva Kiruthika Muthuraj's user avatar
1 vote
1 answer
250 views

Copying Renderings , Final renderings for multiple items using powershell fails randomnly on few items

We have set Presentation Details on template's Standard Values. I dont want these standard value renderings in my existing page, as we have correct renderings in existing pages and I want this ...
Visva Kiruthika Muthuraj's user avatar
1 vote
1 answer
164 views

Import-Item now working on other directory files

I have exported items using Export-Item command to a specific path in Data folder say, "websitepath/data/batch/userGivenName", please refer my previous question How to copy selected items to ...
Visva Kiruthika Muthuraj's user avatar
1 vote
1 answer
219 views

How to copy selected items to a Data folder using powershell script?

We have a requirement for bulk workflow approval. Where we need to add items(with or without children) similar to this image, Following this article, https://www.sitecorenutsbolts.net/2015/12/14/...
Visva Kiruthika Muthuraj's user avatar
1 vote
0 answers
650 views

Getting this error after installing PowerShell v6.3 Type "Cognifide.PowerShell.Client.Controls.IsePluginStrip, Cognifide.PowerShell" not found

I am hoping to understand the cause of this and hopefully find a solution - I have looked at every possible solution, but haven't been able to fix it. Sitecore v10.0.2 using PowerShell v6.3. I have ...
Harish's user avatar
  • 129
1 vote
0 answers
327 views

Powershell script to update personalization rule

I want to update personalization rule for all the pages which have one common rendering. Is it possible using powershell we can identify the rendering and update personalization rule to target page ...
Anonymous's user avatar
1 vote
0 answers
94 views

Sitecore PowerShell Remoting doesn't work with http://localhost/ and http://127.0.0.1/ addresses

I have Sitecore 9.3 with SXA and SPE 6.0 installed in a Docker container. docker-compose.yml map containers 80 port to 80 on local machine. ports: - "80:80" I have an additional ...
Anton's user avatar
  • 3,831
1 vote
0 answers
44 views

Unicorn serialized files whose items are edited through SPE are not listed in source control pending changes

We are running Sitecore powershell script to update a item's field. Respective yaml files are generated in web root folder. But not showing in TFS pending changes. On the other hand, if we are ...
Thamizh's user avatar
  • 197
1 vote
0 answers
78 views

Powershell -ErrorAction not working for Receive-File

I have created the utility to upload files using Receive-File. It's working fine however if user missed to choose the file and clicks OK button in that case I am getting the error message popup. I ...
Karthik 's user avatar
1 vote
0 answers
450 views

Sitecore powershell, Excel export does not contain all the records after decoding the rich text field

I wrote a script to capture all content from specific location of the content tree, as part of this script I need to take out only the text from the rich text fields. I use the HtmlAgilityPack to ...
Rilan's user avatar
  • 21
1 vote
0 answers
134 views

Sitecore PowerShell access allow/deny at same time

Hello Sitecore SPE Experts, I have a very basic question, hope anyone help me: I am using something like below Add-ItemAcl -Path master:\content\home -AccessRight "item:read" -PropagationType Any - ...
Arun Sharma's user avatar
1 vote
0 answers
271 views

Powershell script runtime error when clicking navigate/export excel button in showlistview result

I am using Powershell to generate a report using show-listview but sometimes when the user clicks the excel report or navigation button in the result window it's showing a runtime error. I have ...
Karthik 's user avatar
1 vote
2 answers
372 views

SPE Remoting script throws null-valued expression exception

On a fresh Windows VM I installed powershell extensions module: Install-Module SPE Then I am trying to invoke a remote script on my sitecore instance: $url = "https://my-sitecore.azurewebsites.net" ...
JleruOHeP's user avatar
1 vote
1 answer
370 views

Event handler PowerShell/Services/RemoteScriptCall.ashx call giving 503 error

I have a local Sitecore instance with name sc90.local and I am trying to publish files on local instance using gulp. Response error: Upload failed: styles.css Status code:503 URL: POST http://sc90....
ironman's user avatar
  • 131
1 vote
0 answers
83 views

Pagination on Update-ListView

I have written a PowerShell script as an action to delete selected items in the list view. The issue is - when I delete an item on any page other than the first one, after deletion, update-listview ...
NewbieHere's user avatar
1 vote
0 answers
156 views

Session Elevation options when using Federated Authentication

When I want to excecute a powerhsel Script in sitecore 9 update 2 with SPE 5 I get the following authentication Dialog. But I am using Azure Federated Authentication Login to log in into sitecore. ...
squadwuschel's user avatar
  • 1,165
1 vote
1 answer
373 views

Attempting to Export Creative Exchange through script web api

I'm attempting to follow the documentation for SXA in a CI/CD process. Configuration Details: Sitecore 9.1 (Standalone Config - My Local Dev) SXA 1.8 initial release PowerShell 5 Running on Windows ...
Derek Port's user avatar
1 vote
0 answers
522 views

Error installing Sitecore PowerShell Extensions 5.0 on Sitecore 9.1 instance ['packageinstall:items:ended' event]

I got this error when trying to install SPE 5.0 on my Sitecore 9.1 instance. [![enter image description here][1]][1] I was able to get more details checking the log files: ManagedPoolThread #3 08:...
Hugo Santos's user avatar
  • 2,311
1 vote
0 answers
341 views

Can I automate the PowerShell Extension package installation?

Is it possible to automate the installation of the package that everybody is using to automate the other packages installation? My goal would be having a script which I can use to install SPE on a ...
Hugo Santos's user avatar
  • 2,311
1 vote
0 answers
147 views

PowerShell Receive-File dialog is empty

I'm trying this really easy Receive-File but I'm getting a blanc popup. I've tried different paths but always get the same result. Another popup Read-Host is no problem. That one shows correctly. I'...
Koen Heye's user avatar
  • 1,626