copy Copy chevron-down
Training Getting Started Quick start guide to get up and running with SPE.
Ready to start using SPE? This guide will get you up and running in minutes.
Before starting, ensure you have:
✅ Appropriate permissions to access PowerShell tools → Security
✅ Basic understanding of Sitecore concepts (items, templates, fields)
Opening the PowerShell Interfaces
SPE provides two main interfaces for running scripts:
The Console - Quick Commands
The PowerShell Console is perfect for running quick, one-off commands.
How to open:
Go to Desktop (bottom left icon)
When to use the Console:
The ISE - Script Development
The PowerShell ISE (Integrated Scripting Environment) is a full-featured script editor.
How to open:
Go to Desktop (bottom left icon)
When to use the ISE:
Writing multi-line scripts
Developing reusable tools
Saving scripts for later use
Learn more: Console | ISE
Your First Command
Let's run your very first SPE command!
Step 1: Open the Console
Follow the instructions above to open the PowerShell Console.
Step 2: Run a Command
Type this command and press Enter:
Step 3: Examine the Results
You should see output showing details about your Home item:
circle-check
Congratulations! You just retrieved a Sitecore item using PowerShell. This is the foundation of everything you'll do with SPE.
Understanding What Just Happened
Let's break down that command:
Get-Item - The command (cmdlet) that retrieves an item
-Path - A parameter that specifies which item to get
"master:\content\home" - The location of the item
\content\home - The path to the item
Now that you've run your first command, try these:
List Children of Home
This shows all direct children of the Home item.
List All Descendants
circle-exclamation
Be careful with -Recurse on large content trees! It can take a long time. See Common Pitfalls for more.
Get Item Properties
PowerShell has a default set of properties to format to the output window even though the objects returned still contain all the properties.
Using Select-Object, the properties are trimmed and the output window reflects the specific fields.
Output:
Find Items by Name
This finds all items under Home that have "Sample" in their name.
The ISE is more powerful for writing longer scripts. Let's try it out.
Step 1: Open the ISE
Follow the instructions above to open the PowerShell ISE.
Step 2: Write a Script
In the top pane (script editor), type:
Step 3: Execute the Script
Click the Execute button (▶️) or press Ctrl-E .
Step 4: View Results
The bottom pane shows the output of your script.
Variables store data and start with $:
Learn more: Variables
The pipe | chains commands together:
Learn more: Commands and Pipelines
SPE uses providers to access different data stores. The most important is the Sitecore provider :
Learn more: Providers
Here are some common tasks you can do right now:
Check if Item Exists
Count Items by Template
Find Items Modified Recently
Export Data to CSV
SPE includes extensive built-in help:
Get Help for a Command
Get Detailed Help
List All SPE Commands
Learn more: Help
The ISE includes a Script Library with ready-to-use examples:
Click to expand SPE in the tree
Expand folders to find examples:
Training - Learning exercises
Reports - Content reports
Before you continue, remember these important safety rules:
Always Test First
❌ Don't run scripts in production without testing
✅ Do test in development first
✅ Do understand what a script does before running it
Be Careful with Modifications
Commands that change data:
Remove-Item - Deletes items (can be recovered from Recycle Bin)
Set-Item - Modifies items
Publish-Item - Publishes changes to web database
Use Version Control
Save important scripts to source control
Document what your scripts do
Share scripts with your team
Review Security
triangle-exclamation
IMPORTANT : SPE is powerful and requires proper security configuration. Review the Security Guide before deploying to any non-development environment.
Now that you're up and running:
Quick Reference
Essential Commands
Returns an object at the specified path.
Returns children at the specified path. Supports recursion.
Returns the help documentation for the specified command or document.
Returns a list of commands.
Enumerates over the objects passed through the pipeline.
Enumerates over the objects passed through the pipeline and filters objects.
Returns objects from the pipeline with the specified properties and filters objects.
Sorts the pipeline objects with the specified criteria; usually a property name.
Returns the methods and properties for the specified object.
Special Variables
Ready to dive deeper? Continue with Language Basics !