Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 5360

Anything related to the Sitecore PowerShell Extensions (SPE) module

0 votes

Get Sitename through PowerShell script

You can use the below code to get all the sites in a list. The list can be used in a dropdown for the user to select the site. $SiteResolver = [System.Type]([Sitecore.XA.Foundation.Multisite.ISiteInfo …
Vinay Jadav's user avatar
0 votes

Sitecore PowerShell script to convert Sitecore Date field data to other format

You could do something like this: [Sitecore.Data.Fields.DateField] $dateField = $item.Fields["Event Start Date"] $dateString = $dateField.DateTime.ToString("yyyy-MM-dd") $timeString = $item["Event Sta …
Vinay Jadav's user avatar
0 votes

Powershell script to download media library content to my machine

Your script looks fine as it is. If Send-File doesn't work, you can use the Out-Download to achieve the same. It will be as below: [Sitecore.Data.Items.MediaItem]$mediaItem = gi $mediaItemPath $fileNa …
Vinay Jadav's user avatar
0 votes

How to replace an item with another item by ID in Treelist field using Powershell?

The script below should help you. Modify the variables as required. You may have to run the script a few times, changing the values as required. function ToArray { Begin { $output = @(); } Pro …
Vinay Jadav's user avatar
1 vote

How to execute sitecore command through powershell script

You will need to find the command that is being executed with the click of the Ribbon item. Then, you can run the command in Powershell as below: $commandContext = [Sitecore.Shell.Framework.Commands.C …
Vinay Jadav's user avatar
0 votes

Good workflow for SXA PowerShell scripts

I prefer doing it the other way around. The code that must be maintained properly can be written in C# within your projects. Then, we can expose certain services in the C# project that SPE can use. We …
Vinay Jadav's user avatar