Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [powershell-extensions]

Anything related to the Sitecore PowerShell Extensions (SPE) module or general Windows PowerShell.

0
votes
1answer
152 views

Sitecore PowerShell RemoveLinks() using Broken Links Report

I am currently using the Sitecore Powershell Broken Links Report to find and delete broken links. Using the Broken Links Report, I have been able to locate the broken links. I can't seem to delete ...
5
votes
0answers
122 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 ...
3
votes
0answers
48 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 ...
3
votes
0answers
124 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 ...
3
votes
0answers
105 views

New item is not in focused after creation using powershell

When we create item in a Sitecore bucket folder using PowerShell Extensions like shown below: New-Item -Path "$PathofBucketFolder" -Name $TitleofanItem -ItemType $TemplateofanItem Item gets created ...
2
votes
0answers
174 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 ...
2
votes
0answers
242 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 ...
1
vote
0answers
19 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....
1
vote
0answers
112 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 ...
1
vote
0answers
105 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 ...
1
vote
0answers
157 views

Use custom Mongo db with Powershell

I have a custom mongo database, that database contains information about pages.I need to query it in order to use SEP to create pages according to that info, ig, adding renderings component, etc. ...
0
votes
0answers
20 views

How to copy multiple pages and update the component's path with the new location

Would like to copy multiple pages from one location to another and update part of the path for the components associated. All other details such as folder structure, Item names, versions will be ...
0
votes
0answers
39 views

Sitecore PowerShell Extensions Get-Member returning nothing

Was trying to use SPE-Remoting module. 1) Installed SPE [Sitecore PowerShell Extensions-4.7 for Sitecore 8.zip] 2) Created local setup using "SPE Remoting-4.7", just used video https://www.youtube....
0
votes
0answers
24 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'...
0
votes
0answers
24 views

Getting Document moved error while running remote powershell script in Sitecore 9.0 update 1 PAAS

I am trying to run Sitecore powershell script remotely using below script Import-Module -Name SPE $session = New-ScriptSession -Username $userName -Password $password -ConnectionUri $uri Invoke-...
0
votes
0answers
240 views

SXA Import Failed Value cannot be null. Parameter name: source

I am using Sitecore 9.0 Updated 1 and Install Sitecore Experience Accelerator 1.6 rev. 180103 in my Sitecore instance. Now Working in SXA we have created dummy site and Export the site to add one new ...
0
votes
0answers
69 views

PowerShell find-item doesn't return values

I'm currently using find-item on Sitecore PowerShell Find-Item -Index sitecore_master_index -Criteria @{Filter = "Equals"; Field = "recipe id"; Value = "Recipe_Lambada"}, @{Filter = "DescendantOf"; ...
0
votes
0answers
130 views

Create an item at site creation with Sitecore PowerShell

I wrote a simple script in order to push an item when i create a new site: $item = New-Item -Path $SitecoreContextItem.Paths.Path -Name "bidule" -ItemType "/sitecore/templates/Project/OSK/OSK Home" ...
0
votes
0answers
114 views

Adding placeholder settings to presentation details of many items

I have to add a bunch of placeholder settings to a bunch of items. These items already have specific presentation details, so not using the standard values. I tried to add them to standard values, ...
0
votes
0answers
110 views

PowerShell List-View control not properly display content wider than screen

I am creating one report using Sitecore powershell script where I used List-View control to display the data and it is generating the output but the output window not properly displaying content if ...