I have written the SPE powershell script in my local Sitecore 9.1.1 sandbox environment and trying to execute, it is asking session elevate privilege to enter credentials. Even though I am entering admin credentials I am getting "Could not validate access using the provided credentials" error.

  1. I have verified Cognifide.PowerShell.config is present.
  2. I have enabled the Cognifide.PowerShell.IdentityServer.config since I am using Identity server
  3. SPE version 5.1 which is compatible with Sitecore 9.1.1

enter image description here

  • Where are you hosting it? Jun 26 '20 at 15:00
  • Did you implement a custom provider or using Azure AD? Jun 26 '20 at 15:37
  • It is in my local sandbox which is installed in my laptop. I am using default "admin" login Jun 29 '20 at 3:59
  • 1
    @PrabhuRanganathan Did you find a fix for this issue? we are facing the same issue.
    – Bala
    Oct 21 '20 at 15:47
  • 2
    @Bala - I changed the elevationAction="Allow" for the required tokens under <userAccountControl><tokens> from Cognifide.PowerShell.config to make it work. I am not sure this is the solution for this since this is related to some permission issue. But it worked for me. Nov 11 '20 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.