Jotting down what I've learnt. - Hong C.
Programming

How To Fix FullyQualifiedErrorId : UnauthorizedAccess – A Powershell Error

The Problem

I was trying to run my express script in VSCode on Windows 11 using the Terminal, and I got back the following PowerShell error:

cannot be loaded because running scripts is disabled on this system.For more information, see
about_Execution_Policies at https: /go.microsoft.com/fwlink /? LinkID = 135170.
At line: 1 char: 1
  + nodemon server
    + ~~~~~~~
    + CategoryInfo          : SecurityError: (:)[], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess

The link didn’t work for me.

Luckily, there is an easy fix.

The Solution

Go to Settings > System > For developers.

Look for PowerShell, then turn this option on:

Change execution policy. -> On

Now run your script again, it should be working. You might get asked for permission to run it for the first time.

Share:

Article written by:

Hong C.

Passionate in programming, music, languages, and learning new things.

Currently working on: ZenTube - decluttered: iOS YouTube app

Follow me on: Bluesky

Personal website: HongCT.net

Leave a Reply

Your email address will not be published. Required fields are marked *

back to top