Skip to main content

Questions tagged [powershell-extensions]

Anything related to the Sitecore PowerShell Extensions (SPE) module

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

We had this issue when trying to use SPE Remote Scripting but the file test-1.0.zip definitely existed: Connecting to Sitecore instance... Package created at: /temp/test-1.0.zip VERBOSE: Preparing ...
Adam Seabridge's user avatar
0 votes
0 answers
40 views

I have created a Sitecore chunk using SPE to delete multiple items. After deleting the items, I have to refresh the tree manually. I want to know if there is any way to refresh the item's parent using ...
Saibalini Ray's user avatar
1 vote
4 answers
70 views

my code is below. I want to open left pane of tree list with context item. it is not happening. Can anyone please help. I have pasted my code below. $selectedItems = get-item . $dialogProps1 = ...
Saibalini Ray's user avatar
2 votes
3 answers
97 views

I am experiencing a persistent, silent failure when using Sitecore PowerShell Extensions (SPE) to create new language versions for a specific set of items. The Goal: To programmatically create a new ...
Mario Hugo Gallardo's user avatar
3 votes
1 answer
57 views

I have a Windows service that needs to send and publish Items in Sitecore. This service is in .NET Core, so the best solution I've found is to remotely call Sitecore's PowerShell through "SPE ...
Xavier Casals's user avatar
1 vote
0 answers
35 views

I have a report that pulls things like template name, path, ID and age of items. Note none of these fields should have line breaks. The report wouldn't work in Show-Listview - it would say "...
Tim's user avatar
  • 63
2 votes
1 answer
74 views

I’m working on a Sitecore XP 10.0.1 implementation where we currently have content created under the language pt-BR. Due to localization requirements, we need to fully switch to a new language code: ...
Sergio Parissi Reyes's user avatar
0 votes
3 answers
102 views

Our configuration allows the log.*.txt files to all appear in the root directory of /App_Data/logs while everything else appears in a folder. The primary issue now is that the Log Viewer does not ...
Michael West's user avatar
  • 18.7k
0 votes
2 answers
177 views

I need to transfer not full layout only some common renderings from the Final layout to the Shared layout in the presentation details section for over 100 pages in Sitecore 10.2. I've attempted to ...
Kiran's user avatar
  • 55
1 vote
2 answers
254 views

I have a scheduled task for sending weekly reports. The task is created in Sitecore and set to run on Fridays. I have added this 1900101|20990101|32|168:00:00 in the schedule field. It is running ...
Mohit Patil's user avatar
2 votes
2 answers
92 views

I am working on Sitecore with PowerShell and have a requirement to create a list of all items updated within the last 24 hours. I need to include who changed them and the path of each item in Sitecore....
ChanderKant's user avatar
1 vote
2 answers
118 views

Need to get list of most used components to ensure that they work with (Landing Page) specific template.
Hasanshali's user avatar
1 vote
2 answers
131 views

I would like to know how to get Ancestors of an item using powershell. Thanks, Sai
Saibalini Ray's user avatar
1 vote
3 answers
166 views

I have tried both Add-ItemVersion and Add-ItemLanguage. Both are not working. I do nt see the versions created. can anyone please help $copiedChildren | Add-ItemVersion -TargetLanguage "cs-cz&...
Saibalini Ray's user avatar
0 votes
0 answers
59 views

We are currently on Sitecore 10.3 XM and want getting the reports displayed as we click Powershell Reports button in the Launch pad. Currently it displays below message. Can someone please help us in ...
Meghan's user avatar
  • 487
0 votes
1 answer
40 views

So far my dialog provides a simple text field with validation. I would like to pass a variable from outside the scope of the validator scriptblock. $scriptVariable = "this is a script variable&...
Michael West's user avatar
  • 18.7k
0 votes
1 answer
59 views

I'm trying to figure out how to obtain the delta between the Shared Layout and Final Layout. I have a component in the Shared Layout, but not in the Final Layout, but it is still not showing on the ...
Cristian Delgado's user avatar
0 votes
0 answers
63 views

To copy/create languages in Sitecore PSE is very easy to do: Add-ItemLanguage $_ -Language $originLanguage -TargetLanguage $destinationLanguages -IfExist $ifExists If a language fallback is enabled ...
a3code's user avatar
  • 1,272
0 votes
0 answers
59 views

$itemPath = "master:/sitecore/media library/sample/sampleConfig" $itemPath = Get-Item -Path $itemPath -Language "ja-JP" I am running a script like the one above. I get a not exist ...
m.kawasaki's user avatar
0 votes
2 answers
174 views

I need to update the Datasource Item Path in Item Presentation Details using PowerShell for Sitecore. Since there are over 100 items, I want to avoid doing this manually. I've written a PowerShell ...
jammy's user avatar
  • 158
1 vote
0 answers
38 views

I needed to execute a script that should send an email whenever AppPool Recycle event occurs in the server - came with below script that check whether AppPool recycled in every 10 minutes. $startTime =...
Madhu Anbalagan's user avatar
4 votes
5 answers
404 views

I need help to Pull a list of all templates within Sitecore including Template Name Number of pages using this template URL of page using the template
Hasanshali's user avatar
1 vote
1 answer
54 views

I found that the default setting for search results was far too many for our website so I reduced the maximum results to 250 using the following patch: <setting name="ContentSearch....
Michael West's user avatar
  • 18.7k
4 votes
4 answers
381 views

I'm creating multiple item in multiple language in Sitecore using PowerShell Script I'm using 2 script for different different language is this possible in single script. Adding here both script. ...
Kiran's user avatar
  • 55
3 votes
2 answers
199 views

I'm trying import the Sidekick Powershell module, Sitecore says it can't open the file. I gave full permission to the folder for IIS-URUS AppPool/local-cm IUSR However, I'm still not having any luck....
Madhu Anbalagan's user avatar
1 vote
3 answers
83 views

When I execute this script in Sitecore Powershell ISE: Write-Host 'This is a test' $count = 0 $customObj = [PsCustomObject]@{ Ask = 'Hello' Jeeves = 'World' Count = $count } $customObj ...
dbucky's user avatar
  • 11
0 votes
2 answers
265 views

I have two videos format first one only dashes and second one underscores and dashes. I need figure out format by Sitecore powershell script from specific path. Format One Video Images (dashes): video-...
Hasanshali's user avatar
1 vote
2 answers
224 views

I have got following script, $newsPath = "/sitecore/content/XA/xa-website/home/News" [Sitecore.Data.ID] $templateId = "{2A4C30D0-A53C-494F-AADF-3790828CDDFE}" $news = Find-Item -...
Raunak Basnet's user avatar
2 votes
4 answers
155 views

This is my PowerShell script, where templateFolderPath is a path of my template folder: $templateFolderPath = "/sitecore/templates" $templateIds = @() $templateFolderItem = Get-Item -...
Manish's user avatar
  • 97
3 votes
1 answer
176 views

I am trying to get the raw values of fields of multiple items and display the result using Show-ListView. However, the result is not showing the values when it is enclosed in < > which can be ...
jeen15's user avatar
  • 33
4 votes
3 answers
465 views

I'm using the PowerShell script to update a specific field of the item in the content tree. It works for singleline, richtext, link fields but the update is not applied to the checkbox field. How to ...
Hanish Jain's user avatar
3 votes
3 answers
1k views

I am trying to get all the fields on the available item. seems like the following line is not fetching all the fields. Am i missing something ? $fields = $item.Fields
CHUKKA PRASAD's user avatar
0 votes
1 answer
140 views

I'm implementing the workflow setup in sitecore 10.2 version and the page has datasource items present. If the user clicks on Lock and edit options, then a new version will be created for page and ...
shivaraj's user avatar
0 votes
1 answer
156 views

I am trying to use Sitecore Remote Powershell following the guide here. No errors are immediately returned, however, looking in the SPE logs I can see the following logs: 8132 10:43:17 INFO A request ...
djh's user avatar
  • 23
5 votes
3 answers
326 views

How to tell if the item language is the fallback language or the regular language version using a PowerShell script
CHUKKA PRASAD's user avatar
0 votes
2 answers
192 views

How do I access Sitecore content editor's ribbon button using Sitecore PowerShell extension? I need to use this validation button for all the items created and have a look at the errors (if any). Is ...
Raunak Basnet's user avatar
1 vote
2 answers
125 views

There is a way to rebuild the link database in Sitecore using the Control Panel available on Content Management. We are trying to automate this process of rebuilding the link database. Now, I want to ...
Aksha Jain's user avatar
1 vote
2 answers
125 views

Doing a lot of cleanup of versions and generating several reports. We are cleaning up versions on tons of items and I wanted to generate a report of the completed activity. I can get the item ...
GregB's user avatar
  • 13
1 vote
1 answer
142 views

I want to be able to share links that automatically open a script in the PowerShell ISE. For now, my workaround is to share a link directly to the saved script item in the Content Editor using the fo ...
Marcel Gruber's user avatar
1 vote
2 answers
115 views

I'm working on a SPE script to execute when a workflow state is hit. I've been trying to get the context item in the script, using the command Get-Item . (as I understand it, this should get the ...
Tim's user avatar
  • 63
3 votes
1 answer
230 views

I'm defining serialization, and I'd like a report of items loaded by Sitecore so I can make sure I'm avoiding those paths. Is it possible to get a CSV listing of all items in the stock items-as-...
Dan Solovay's user avatar
  • 2,231
0 votes
1 answer
81 views

Is it possible to interact with Sitecore's DI container from the SPE command line? I was able to do this: PS master:\>[Sitecore.DependencyInjection.ServiceLocator]::IsConfigured True But when I ...
Dan Solovay's user avatar
  • 2,231
1 vote
2 answers
108 views

I have a csv file where in path C:\Usman\meetings_export.csv and has a column called media-ID. This column has media ids which are comma separated, for example: {5625AF3F-F69C-420A-AFE3-B19060F42A43},{...
Raunak Basnet's user avatar
2 votes
4 answers
1k views

There is some Power Shell script that returns content. and it is called using the Powershell Web API: Invoke-WebRequest -Headers $headers -Uri $CMHostname/-/script/v2/master/Get-TestContent?type=...
Александр Кореновский's user avatar
1 vote
2 answers
329 views

In our project we are creating static sitemap and need to exclude not publishable item from master sitemap. We need a way to find this detail at item level or do we need custom code to do that.
Rinku Jain's user avatar
2 votes
2 answers
230 views

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
2 votes
3 answers
144 views

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
0 votes
5 answers
823 views

I am having Sitecore's Date field data coming as 20230804T000000Z, I also have time coming as 11 am. The Date is coming from Sitecore date field, and time from Single-Line Text field as below. I need ...
Raunak Basnet's user avatar
0 votes
3 answers
510 views

I have Sitecore 8.2 where I got spe version 6.4 I have got a csv file, where sample of data i.e. one row looks as "Item ID","Title","Created","Changed","...
Raunak Basnet's user avatar
0 votes
2 answers
116 views

I have got $eventsPath = "/sitecore/content/Global Content/Events" $templateId = "{EBE88C21-4035-4266-9647-B4C88F1BC000}" # Function to get data and print on the screen function ...
Raunak Basnet's user avatar

1
2 3 4 5
11