how to fix powershell 403 forbidden error

Ifraz Aldin 0 Reputation points
2023-03-12T07:16:10.07+00:00

Hello

my microsoft store is not working . I tried many ways

so i instead of fixing ms store , i tried downloading apps without ms store with the help of this video : https://www.youtube.com/watch?v=__2_41pVHcQ&ab_channel=ChrisTitusTech

in that video 5:09 when i inserted that script

irm " http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/1ee8f2d3-cfbe-4514-a83a-5aaadb44df5e?P1=1678597812&P2=404&P3=2&P4=P1FIzxt1ebBzlwShW75o8%2f51MPP%2fnNhZVdM1fy9JA3jRHC4PlwgHNzT1QvFtsAM0YqfVCFtYhvlhX%2fJ10C4E5g%3d%3d" -o spot.appx

by the way the script is different from what u saw in the video

it showed an error :

irm :
ERROR: The client request can not be fulfilled
ERROR: (Forbidden)
We were unable to satisfy your request due to access control:

At line:1 char:1
+ irm " http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/fi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

i don't know how to fix this pls help

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-03-14T09:00:36.4+00:00

    Hello there,

    Try running the Powershell as admin. This error typically indicates that the credentials you are using to connect to the site are incorrect or that the user account does not have sufficient permissions to access the site.

    For the site issue try to reset the Microsoft Store cache: Press the Windows Logo Key + R to open the Run dialog box, type wsreset.exe, and then select OK.

    Note: A blank Command Prompt window will open, and after about ten seconds the window will close and Microsoft Store will open automatically.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.