Skip to main content

Questions tagged [powershell]

Issues relating to the PowerShell scripting language. This can include the stand-alone PowerShell scripts run from the command-line, or PowerShell DSC install automations.

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
175 views

List of Personalization Rules Conditions and What it Triggers

Is there a way in Sitecore to get a list personalization with it rules conditions and what triggers it? Prefer to use PowerShell if it can be done that way or an OOB method. Thanks.
RReilley's user avatar
  • 755
2 votes
0 answers
187 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
183 views

Sitecore smart publish failing with remote script block using powershell

Invoking RemoteScript block and publishing item on remote server through octopus but getting error. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Import-Module -Name ...
ironman's user avatar
  • 131
1 vote
2 answers
48 views

Broken error message within PowerShell Receive-File dialog. Sitecore XP 10.1.2 (rev. 006578)

I have a simple powershell script that invokes file upload into the context item: Receive-File -ParentItem (get-item .) If I try to upload existing file (name of the item exists in the same folder) it ...
Oleg Larkin's user avatar
1 vote
4 answers
139 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
0 answers
42 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
2 answers
207 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
3 answers
353 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
272 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
2 answers
2k views

Azure Command not working in PowerShell module with Sitecore 9.3

Trying to upload a CSV to Blob. Using Sitecore 9.3. Sitecore PowerShell module is throwing the below error: New-AzStorageContext : The term 'New-AzStorageContext' is not recognized as the name of a ...
Debaparna's user avatar
  • 497
1 vote
1 answer
173 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
220 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
328 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
79 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
29 views

Sitecore 9.1 distributed architecture - how to create two processing node through PS script

Sitecore 9.1 initial release . Is there a way to create two processing nodes with PowerShell script or should it be done manually. If it needs to be done manually, what all settings to be taken care ...
Avinash J's user avatar
  • 313
1 vote
0 answers
186 views

License error to Execute razl exe from Sitecore powershell script

I am trying to automate content migration to upper environment using razl and Sitecore PowerShell. While executing razl exe through Sitecore powershell module, getting license error. error: you do not ...
Akanksha's user avatar
1 vote
0 answers
135 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
2 answers
157 views

Is it possible to edit items via SIF

Installing Sitecore Commerce 9.0.3 with adjusted URLs (changing everything localhost), I made adjustments to the installation process with SIF. For example, I fix the localhost URLs in the Sitecore....
Lars-Pascal Körber's user avatar
1 vote
0 answers
200 views

Sitecore Commerce 9 Update 1 Installation Issue with SPE 4.7.2

I tried to install Sitecore Commerce using PowerShell script but I got the error that resource is not found for Sitecore PowerShell Extensions 4.7.2 although I have this zip package for Sitecore 9 ...
Dionis Takac's user avatar
1 vote
0 answers
198 views

Powershell script fails on trying to start website when installing the Sitecore 9.0.1

My powershell script fails when I try to run it on the Azure VM. The local installation passes successfully. Any help is appreciated :) > [-------------------------------------------- ...
Denis Chernov's user avatar
0 votes
0 answers
83 views

Spell checker through powershell script

I am using Sitecore 9.1 with sxa 1.8. I need to check spelling on whole page ( has multiple components) using PowerShell script. I have tried OOTB functionality for spelling option under Review menu. ...
Ashu's user avatar
  • 402
0 votes
1 answer
246 views

Installation Error : Sitecore 9.1.0

I am installing Install Sitecore 9.1.0 using PowerShell script and getting the following error: Unable to connect to target server. Please verify the connection information such as the server name, ...
MEENU CHAUHAN's user avatar
0 votes
0 answers
39 views

How do we update layout details in template's standard values without affecting existing pages?

I have a situation where I need to set correct controls in layout- presentation details for my template standard values, without affecting the existing pages which uses the template. We have manually ...
Visva Kiruthika Muthuraj's user avatar
0 votes
0 answers
266 views

Is there a way to add check box to powershell reports to select or unselect the items from report?

We have a requirement,to show list of items with checkbox to select or unselect the items. Like this, I have tried dialog box with checklist editor by referring to following articles, https://www....
Visva Kiruthika Muthuraj's user avatar
0 votes
0 answers
362 views

Powershell script to update the template but to retain all renderings and fields

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 ...
Visva Kiruthika Muthuraj's user avatar
0 votes
0 answers
207 views

PowerShell Passing in List of Values to Function for Predicate Index Filtering

I am trying to build a predicate, but if I don't hard code a value it does not work. I need to pass in a list of values. If I hard code a value the filter works. Any ideas on what I can do to get this ...
RReilley's user avatar
  • 755
0 votes
1 answer
459 views

Sitecore 9.0.1 installation is failing with Solr 6.6.3

I already have 2 instances running on my machine with Solr version 6.6.2 for POC purpose I am installing Sitecore 9.0.1 instance with Solr version 6.6.3.Solr is installed using the powershell script ...
Vinaya's user avatar
  • 321
0 votes
1 answer
131 views

MediaCache remove item error during deployment

During deployment on CD server we're first removing complete website from root directory and then adding custom code on top of that through PowerShell script. During this time we're getting below ...
Sukhjeevan's user avatar
0 votes
0 answers
48 views

What is the difference between using the Sitecore gutter to unlock an item and using the command button in the Sitecore Ribbon?

I am working on creating an SPE version of unlocking an item in Sitecore I can assign to content editors so an administrator does not have to do it. Unlocking an item using the Sitecore ribbon seems ...
Carlos Rodriguez's user avatar
-1 votes
1 answer
261 views

Is there a way to link a Powershell script to a custom button?

I'm trying to run a PS script I made via custom buttons. The scripts must be loaded from Sitecore Script Library (/sitecore/system/Modules/PowerShell/Script Library) The script runs perfectly if I run ...
iusmar's user avatar
  • 239