Questions tagged [powershell-extensions]

Anything related to the Sitecore PowerShell Extensions (SPE) module

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
56 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
54 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
40 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
43 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
14 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
13 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
30 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
67 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
44 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
90 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
30 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
23 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
93 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
67 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
92 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
43 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
80 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
59 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
63 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
52 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
45 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
77 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
42 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
44 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
55 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
132 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
41 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
353 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
75 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
248 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
31 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
108 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
118 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
342 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
54 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
47 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
39 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
134 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 = &...
0
votes
2answers
157 views

Creating a new item with "/" in Itemname

I am trying to create a new item in Sitecore from Powershell and using the below command in ISE New-Item -Path "master:\content\home" -Name "A/B Demo" -ItemType "Sample/...
1
vote
0answers
27 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 ...
0
votes
0answers
71 views

Sitecore Powershell Extensions - Remote Update Package installation not working after recycling app pool

I'm trying to run an update package installation remotely by using the Remoting PowerShell module for SPE. It doesn't install it unless I run it on the SPE console first, and then, remote ...
2
votes
1answer
168 views

Run Powershell script when an Item is being published

I'm trying to do implement some logic while a particular template item is getting published. To implement this logic I started exploring the Sitecore Powershell's Event Handlers. For the events like ...
3
votes
1answer
278 views

Download Image from External URL to Sitecore Media library

Is there a way to add (Download) an image from an external URL to the Sitecore media library directly using SPE? Example: I want to add an image from URL (http://mySite/wp-Rad.jpg) to Sitecore media ...
1
vote
1answer
51 views

Update Commerce Data Templates with SPE

How can I trigger Update Commerce Data Templates from SPE? I am automating a Docker deployment script and the one step that I am missing for it to be fully automated is being able to do this from ...
3
votes
1answer
201 views

How to create button at EE and run powershell script

I need to add a custom button for EE and run a script if the user clicks on the button. basically, I know how to create a button at the core database at /sitecore/content/Applications/WebEdit/Ribbons/...
-2
votes
1answer
530 views

Sitecore PowerShell script to get all images where the media attached is empty

I'm writing a Sitecore PowerShell script to get all images (without their Media Folders) under the path master:\sitecore\media library, where the Media attached is empty. I am using the below code but ...

1
2 3 4 5
7