I am getting 401 unauthorized exception while downloading(Excel/CSV) Powershell Reports. I have tried by adding /-/script/handle in IgnoreUrlPrefixes setting but no luck.

Sitecore Version: Sitercore 9.1

Please help me out.

Thanks, Joy

enter image description here


This issue occurs in Sitecore 9.1+ instances.

Solution:- Add below mentioned line to allow powershell to download/upload files like export excel/csv etc.

File Name:- C:\inetpub\wwwroot\\App_Config\Sitecore\Owin.Authentication\Sitecore.Owin.Authentication.config

Please confirm what needs to be added to the Sitecore.Owin.Authentication.config for this issue

|improve this answer|||||
  • I've already uploaded image and shared link for the solution. Please check i.stack.imgur.com/dhtNT.jpg – SAGAR PANDEY Oct 2 '19 at 17:21
  • There is actually a configuration file included with SPE 5.1+ which patches the appropriate setting for Identity Server support. – Michael West Oct 2 '19 at 18:00

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.