In XM Cloud disable password requirement for Powershell

By default, Sitecore asks you to provide your admin password to create an elevated session to run powershell. This won’t work in XM Cloud, so we have to modify this behavior. If you are using the SXA Starter, you can do the following:

In the .env file at the project root, add the following line:

SITECORE_SPE_ELEVATION=Confirm

In the docker-compose.yml file in the project root, add the following line at this level: services/cm/environment

SITECORE_SPE_ELEVATION: ${SITECORE_SPE_ELEVATION}

Instead of using confirm, you can use a few others. Read more about it here:

https://doc.sitecore.com/xmc/en/developers/xm-cloud/environment-variables.html

Once you have made the changes, be sure to Docker down/up to have them take affect.

Happy Xmclouding!

About Phil Paris

Hi, my name is Phil Paris and I’m a Sitecore Architect and general Sitecore enthusiast. I’ve been working with Sitecore since 2013. Through this blog I will be sharing Sitecore insights, tips and tricks, best practices and general knowledge with the hopes to further the community at large. Please feel free to reach out to me at any time!

View all posts by Phil Paris →