Michael West
  • Member for 5 years, 2 months
  • Last seen this week
3 answers
24 votes
7k views
Installing 9.1 XP0 - Sorry, there was an error : unauthorized_client
Accepted answer
44 votes

After speaking with my friend @kamsar, he pointed out the CORS origin on the Identity Server Instance needs an update. The Identity Server doesn't allow logging in from just any url, for security ...

View answer
3 answers
13 votes
3k views
Sitecore Powershell query for big images of a certain size
Accepted answer
21 votes

August 2019 Update There is a report included with SPE allowing you to find images by a specific size. January 2018 Update - 6 months later So we've added a few more websites with media to our ...

View answer
2 answers
12 votes
1k views
Why is event data stored in every Sitecore database?
Accepted answer
20 votes

I believe the primary reason is each event has an associated target database. Found a brief explanation here by Kiran Patils on how the event queuing works: The CM instance triggers an event such as ...

View answer
4 answers
10 votes
1k views
Sitecore Publishing Service does not show the languages and seeing 404 errors
Accepted answer
18 votes

Turns out that this issue is fairly common. Saw this happen in both SXA and the Publishing Service. The solution is to clear the Temporary Asp.Net files from IIS. Steps: Stop IIS. This can be ...

View answer
3 answers
9 votes
5k views
What is the best way to bulk-create items programmatically?
17 votes

Sitecore PowerShell Extensions provides a great way to create items in bulk. Here is a simple script. foreach($index in 1..10) { $item = New-Item -Path "master:\content\home\sample item$($index)"...

View answer
3 answers
10 votes
10k views
Powershell get all items that use a template
15 votes

There is a report included with SPE called Items with Template that can provide you with this information. This report scans a tree and checks for inheritance at any level. Slow because it has to look ...

View answer
4 answers
5 votes
1k views
Sitecore PowerShell extensions module compatibility with Sitecore 9.2
14 votes

I do know that I personally built 5.1 to address the compatibility issue with jobs. I encourage you to consider trying that to confirm it corrects the issue. https://github.com/SitecorePowerShell/...

View answer
2 answers
5 votes
1k views
Issue elevating SPE Console in 9.1 Azure PaaS
Accepted answer
14 votes

I recently discovered this issue on my local instance of SPE while working on 5.1. Corey Smith showed me how to resolve this issue as it recently came up with Unicorn. Apply the following patch for ...

View answer
1 answers
8 votes
1k views
Where do upgrade packages go to when uploaded?
Accepted answer
14 votes

There is a package directory for the Update Wizard packages at the following path under the site root: \sitecore\admin\Packages

View answer
3 answers
7 votes
1k views
Why do we require Contained database for Sitecore 9?
13 votes

The use of the "Contained Database User model" was introduced for very good reasons, and could be considered useful outside the realm of Sitecore. You can read the article here and here ...

View answer
2 answers
9 votes
3k views
Adding page specific JavaScript via SXA
Accepted answer
13 votes

I love this question because I have an answer. Not long ago I built a module for SXA that would do this. I may not have tested this on your version of SXA, but it should give you an idea how to do it. ...

View answer
1 answers
11 votes
1k views
How do you best manage security domains using SXA with the Active Directory module?
Accepted answer
13 votes

After a nice weekend of trial-and-error with the help of DotPeek, here is what I've come up with. This should be a complete example for use after installing the Active Directory module (using version ...

View answer
1 answers
9 votes
2k views
What are the limitations of Fast query?
Accepted answer
12 votes

Article by John West I came across a nice article written by John West which provides important information for developers. Known limitations: Fast query does not account for the context language (...

View answer
2 answers
7 votes
987 views
Convert disk based media to database
12 votes

You have a few good options. Module: You were probably looking for this. https://marketplace.sitecore.net/en/Modules/Media_Conversion_Tool.aspx Custom Code I would convert the code in this ...

View answer
1 answers
5 votes
1k views
Compare item versions with Sitecore PowerShell Extension
Accepted answer
11 votes

I found some code from John West some time back and made that into a module on Github. You could take the below snippet I converted to PowerShell and make it a report. # Create a list of field names ...

View answer
2 answers
3 votes
910 views
I need to reorder renderings in Presentation Details on all pages
Accepted answer
11 votes

The following example uses Sitecore PowerShell Extensions to change the order of two renderings. The renderings are next to each other, and essentially swap positions. Script # Home Page $item = Get-...

View answer
3 answers
10 votes
19k views
How to check an item exists with powershell without raising an error?
11 votes

An alternative would be to run the Get-Item command and provide the necessary ErrorAction parameter to hide the output. # Variable $item will contain the object if found. if(($item = Get-Item -Path "...

View answer
2 answers
7 votes
1k views
Can I hide disabled users in the User Manager?
Accepted answer
11 votes

I propose hiding users through the use of filtering in the membership provider. Consider using the customFilter attribute used by the Active Directory membership and role providers. Examples shown ...

View answer
1 answers
3 votes
916 views
Accessing SXA Site Grouping Site Settings Properties from Code
Accepted answer
10 votes

These items can be queried using code like this: var siteInfo = ServiceLocator.ServiceProvider.GetService<ISiteInfoResolver>().GetSiteInfo(Context.Item); if (siteInfo != null) { var ...

View answer
3 answers
11 votes
890 views
Are there any specific reserved field names that shouldn't be used in Sitecore?
10 votes

There definitely are reserved field names. Any field on the Standard Template should not be used. I would also recommend you use an Id where possible. You can see the use of this pattern in the ...

View answer
2 answers
3 votes
455 views
Template inheritance - how to resolve duplicate usage
Accepted answer
9 votes

A solid option is to build components that have a data source item rather than relying purely on fields defined on the page. Here's a scenario to help explain what I mean: Let's say you need to ...

View answer
1 answers
8 votes
461 views
SPE How to add multiple items to package source
Accepted answer
9 votes

The script we use to bundle up SPE can be found here: /sitecore/system/Modules/PowerShell/Script Library/Platform/Development/PowerShell Extensions Maintenance/Prepare Console Distribution. From the ...

View answer
3 answers
9 votes
440 views
Where should I install Powershell module for SXA?
Accepted answer
9 votes

SPE is only required for environments that use the Sitecore interface. If you are going to use the Content Editor or Experience Editor then install the module. Essentially only the CM needs SPE.

View answer
1 answers
5 votes
254 views
Run powershell script when new user is created
Accepted answer
8 votes

You could consider running a script that fires with the user:created event. Try the following: Step 1 Create a patch which tells SPE to run scripts for the Sitecore event. <configuration xmlns:...

View answer
1 answers
6 votes
2k views
Knowing which rendering has a broken link
Accepted answer
8 votes

I had to make a modification to the existing Broken Links report included with SPE to show the broken renderings. <# .SYNOPSIS Lists the items with broken links searching all or ...

View answer
2 answers
5 votes
2k views
How to get workflow comments?
8 votes

You can always use Sitecore PowerShell Extensions if you would like to generate reports or build a UI around the history data. $item = Get-Item -Path "master:" -Id "{110D559F-DEA5-42EA-9C1C-...

View answer
2 answers
7 votes
623 views
You do not have permission to create an item here (Local Datasources)
Accepted answer
8 votes

While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data. Example: The ...

View answer
3 answers
3 votes
477 views
Sitecore SXA vs. Hedgehog Feydra
Accepted answer
8 votes

SXA and Feydra are two completely different products attempting to solve completely different requirements. It's like comparing a convenience store (7-11) to a specialty drink store (Smoothie King). ...

View answer
2 answers
10 votes
1k views
How to pass arguments to SPE's Invoke-RemoteScript
Accepted answer
8 votes

The SPE Gitbook provides some alternate examples using the $using:VARIABLE syntax. Example: The following will pass the $data object into the scriptblock for remote execution. Import-Module -Name ...

View answer
3 answers
8 votes
426 views
How to change the domain of a custom role?
Accepted answer
8 votes

I see a few different things need to get this completed. Reporting: Report on all the items with a role explicitly defined. Simple approach is to find all items referencing a given domain. I wrote a ...

View answer
1
2 3 4 5
8