Questions tagged [powershell-extensions]

Anything related to the Sitecore PowerShell Extensions (SPE) module

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

Where are my SXA items?

Running 10.2, I followed the SXA installation instructions and installed: Powershell Extensions 6.3 Sitecore Experience Accelerator 10.2.0 rev. 04247 If I go into /templates, then SXA stuff is there,...
0
votes
1answer
17 views

How to get multilist , dropdown list field value of an item using PowerShell query

I am looking to extract the multilist , dropdown list field value of an item using PowerShell query. $item = Get-Item -Path master -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}" $rawIds = ...
0
votes
1answer
25 views

Display values in the dropdown list with duplicate values

I have a hash table with keys as Guids and values as string. Of which some of the values are same with different Guids. User will be presented with an prompt which contains a droplist of options and ...
0
votes
1answer
19 views

Powershell script to update the template but retain all renderings not working properly [closed]

The below powershell script updates all the item's template and fields mentioned in the root path but in few items the renderings/controls are not getting copied. And I am facing the below issue as ...
0
votes
1answer
36 views

Powershell script to update the template but retain all the field values and rendering

I need to change the template of multiple items in a folder but need to retain the field values and rendering and layout details. I was able to change the template and retain the field values. But how ...
0
votes
1answer
38 views

Programatically change all renderings with specific rendering parameter

I'm new to Sitecore powershell and I would like to know what's the best way to get all the items on my content tree that have a specific rendering parameter set so I can replace it with another value ...
0
votes
0answers
29 views

Remote powershell scripts failing intermittently

During deployment with AzureDevOps, remote PowerShell scripts fail intermittently. In SPE logs we see, 60796 08:22:06 INFO 'POST/script' called by user: 'admin' 61320 08:22:09 INFO Executing ...
0
votes
0answers
23 views

How can we update delta item from one Sitecore instance(master DB) to another Sitecore Instance(master db)

We want to move delta items update done within a time interval from one sitecore instance to another using Sitecore Powershell script, is there a way to connect to 2 master DBs at once and copy/move ...
0
votes
0answers
16 views

Export Sitecore Item content to Excel or csv [duplicate]

I have a requirement where in I need to export the Sitecore item content all data from a specific root node to an excel or csv file. Which is the appropriate ways of doing this? I tried installing ...
2
votes
1answer
90 views

How to pass parameters in Powershell scripted task scheduler?

We would like to pass parameters to powershell script calling from Task scheduler option powershell scripted task schedule. Is there any functionality to pass custom parameters in powershell scripted ...
1
vote
1answer
63 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 =...
1
vote
1answer
18 views

PowerShell-Sitecore-Combine Folders and Files Under One Folder

I have the below code working. $sourceContainer = "/sitecore/content/folder/Home/Topics/To"; $destinationContainer = "/sitecore/content/folder/Home/Topics/From"; Get-...
-3
votes
1answer
42 views

How to add space between two paragraph import from csv file through powershell script

We have a field under .csv file and that field contain two paragraphs showing in one row : orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's ...
1
vote
1answer
47 views

How can we show value of a custom field inside Show-ListView

We would like to show custom data such as custom string(" Test Case 1","Test case 2"). All these data do not inside any items in Sitecore. It is just a string in powershell script ...
0
votes
1answer
16 views

Trigger and monitor Content Migrator preset from SPE

Does anyone know if there is a way of triggering Sitecore Sidekicks's Content Migrator from within Sitecore using SPE and monitor progress? Sidekick's Content Migrator scripting works for Powershell ...
0
votes
0answers
19 views

New lines in cells of SPE Show-ListView when displaying table and exporting to Excel

I have a list of items and I'm displaying their field values in Show-ListView. Some fields are multilist fields, so I'm fetching those item names and including them as individual lines within single ...
0
votes
0answers
31 views

Setting the export report name in Show-Listview in SPE

I wondered if it's possible to set the report name when exporting to something specific when using Show-ListView in SPE? Looking at the docs I can't see any params for this but maybe I've missed ...
0
votes
2answers
82 views

How to upgrade the Sitecore powershell version from 4.7.2 to 5.0 in sitecore 9.0.1

I have the Sitecore 9.0.1 installed along with the Sitecore PowerShell version 4.7.2 . For some requirements need to Upgrade the Sitecore PowerShell version to 5.0 . Can anyone please help in ...
2
votes
1answer
50 views

Jss not recognized as internal or external command while running in C#

I am calling a batch file via c# using powershell library, I see the below error 'jss' is not recognized as an internal or external command, Whereas manually executing the batch file runs with no ...
0
votes
1answer
115 views

Import Excel module installation issues in Sitecore Powershell Extentions

We are trying to enable excel data extraction in a machine where MS office is not present. While doing that we are facing issues to enable the Import-Excel module in SPE. We are facing the below ...
0
votes
1answer
37 views

SPE report fails to run in Reporting Tools; runs successfully in the ISE

I've created multiple custom reports for content managers. They all run as expected in the Sitecore Powershell ISE. When I save them in Reporting Tools and attempt to run I am getting errors. The ...
0
votes
1answer
28 views

Editing SXA Searchbox rendering parameters thru powershell

I am trying to update the 'Search results signature' and Suggestion mode of SXA Search box rendering of items thru below powershell script but it is adding new parameter at the bottom instead of ...
2
votes
1answer
104 views

Reload parent content item

We have a context menu PowerShell script to move an item to a new location and perform some other actions on the item once it's moved to the new location. When the script has finished the item that ...
0
votes
1answer
69 views

Add site module error

I am trying to add an SXA module on a site node. Right-click site node > Scripts > Add site module. I am getting the below error in SPE logs. 19528 00:27:22 INFO Script item set to master:\...
3
votes
1answer
106 views

Add SPE module to custom Sitecore Docker Image

I am trying to add SPE module to XP0 but getting error as shown in the image and its occurring while building the image. what am I doing wrong ? I have tried SPE 6.2-1809 version as well. SPE_IMAGE: ...
0
votes
0answers
47 views

Is there a way to connect Xconnect to get all Contacts via sitecore powershell script?

Is there a way to connect Xconnect to get all Contacts via sitecore PowerShell script ?
0
votes
1answer
91 views

How to get values selected in Treelist Queryable field

We have try to find all items under treelist field. Example $rawIds = [Sitecore.Data.Fields.MultilistField]$page.Fields["Sub Category Pages"] Here getting $rawIds as null. Please note here &...
1
vote
1answer
61 views

Retrieve Rules field using Powershell script in readable format

We are trying to get report using Powershell to list all sub items under one item and some of it's fields. One field in the item is of Rules field type. We are able to fetch RuleSet XML (<...
1
vote
1answer
67 views

How can I get List of Images that directly linked with specific Page Items?

Have a scenario, where wanted to get list of Images which directly linked with marked page items. Below is the powerShell script which I am trying, please help $allImages = Get-ChildItem -Path 'master:...
1
vote
0answers
68 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 ...
0
votes
1answer
56 views

Can I start PowerShell background job through PowerShell Web API endpoint?

I have a PowerShell Web API endpoint running on Azure that takes more than the maximum duration of 230 seconds on an Azure Web App. Is it possible to start a background job consisting of PowerShell ...
1
vote
1answer
96 views

How can I automate the upload Media Library files available in folder under App_Data?

I build my frontend artifacts (theme files, including pre-optimized-min versions of my CSS and JavaScript) using SXA Umbrella, and in my DevOps release pipeline I make them available in the folder ...
0
votes
1answer
53 views

Is this possible to modify existing PowerShell scripts for Sitecore?

I want to modify any one of the existing default Sitecore PowerShell scripts (in the screenshot below), is there any way of doing it? If yes, then please let me know how this can be achieved?
1
vote
0answers
49 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 ...
0
votes
1answer
59 views

How can I access field under particular section in Sitecore using PowerShell Extensions

want to access field "Text1" under "Row1" section. I can do it with $item.Fields["Text1"].Value But there are another section which also contain Text1 field. How can ...
2
votes
2answers
164 views

Setting Image Properties using Powershell on existing Image Field

I am trying to find a way to change the Properties (Alternate Text) of an image field in an item. Do you know how can I access those image properties using Sitecore Powershell?
2
votes
2answers
45 views

Disable Custom Chunk Button calling PSE script if there is no write access to selected item

I have a custom Button in the content Editor (Share), basically it just runs a PSE Script that moves final layout to shared layout. Only a specific role can see the button. Now my problem is, that the ...
1
vote
4answers
478 views

Where to download Sitecore PowerShell Extensions for Sitecore 9.3

I am trying to find the Sitecore PowerShell extensions for Sitecore 9.3. As my knowledge, Sitecore 9.3 supports SPE 6.0 but not able to find any SPE modules for Sitecore 9.3 in the marketplace (https:...
1
vote
1answer
85 views

How to supply value for HttpContext.Current when the OnItemSaving event is triggered via SPE?

I have created a Powershell script that involves automatic assignment of page design to an item. Below are the portions of codes I am using: Powershell code: C-Sharp code My problem is that whenever ...
1
vote
1answer
311 views

Change links in rich text editor using powershell

I have imported a large amount of items in sitecore and used a rich text editor field to store the content text html. Currently all links in the rich text editor are like external links pointing to ...
0
votes
0answers
34 views

Sitecore PowerShell list-view throws 500 error when exporting report to excel

I am using Sitecore PowerShell extensions 5.0 and I have a script written to pull some data from the Sitecore tree. The Script run without any issues until it produces the report. Once the report is ...
0
votes
0answers
28 views

How can I select/unselect Sitecore Commerce catalog using SPE?

I would like to select/unselect one or more catalogs using PowerShell remoting: I'm currently trying this, but that does not seems to be the correct way to set a checkbox... $sitePath = "/...
0
votes
0answers
20 views

Adding Active Directory users using SPE and Show-ListView

We have implemented SSO with Sitecore. However, we don't want to allow all users to be able to log in to Sitecore, so the users are created in the extranet domain manually. I'm trying to make the ...
1
vote
1answer
143 views

Sitecore Powershell Task is scheduled to run every minute but it's running every other 10 minutes

I scheduled a Sitecore PowerShell Task to run a Powershell script every minute but for some reason, it's running the task every other 10 minutes. The frequency in the config file is set to 5 seconds. ...
1
vote
2answers
138 views

Azure AD users unable to execute Sitecore PowerShell scripts

We are having issues with the execution of PowerShell scripts that have security permissions based on roles applied to them, when they are executed from within a context menu within Content Editor. ...
1
vote
1answer
388 views

Sitecore Powershell script to filter the users based on custom roles

we have custom roles in sitecore role manager and assigned them to sitecore users. I am writing a Sitecore PowerShell script to filter the users based on my custom role 'Buyer'. below is my script. i ...
1
vote
0answers
60 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 ...
1
vote
1answer
54 views

SXA clone site script not cloning media or themes

I have a tenant with a site. When I clone the existing site, the script does not clone the media library or themes. Instead the new site points back to the original sites media and theme locations. (...
0
votes
1answer
42 views

Find-item Greaterthan not recognized by SPE 3.0

I'm working on a PSE script that will work on different sitecore environment with different sitecore versions. This script basically get the list of items that is recently updated between to given ...
3
votes
1answer
150 views

How to exclude an item based on template when using find-item in Powershell

I'm working on this script: $criteria = @( @{Filter = "NotEquals"; Field = "_template"; Value = "{A87A00B1-E6DB-45AB-8B54-636FEC3B5523}"} ) $props = @{ Index = &...

1
2 3 4 5
7