site-icon The Average Learner

How To Fix FullyQualifiedErrorId : UnauthorizedAccess - A Powershell Error

Jan 3, 2024
Programming powershellvscodeprogramming
1 Minutes
116 Words
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:

1
cannot be loaded because running scripts is disabled on this system.For more information, see
2
about_Execution_Policies at https: /go.microsoft.com/fwlink /? LinkID = 135170.
3
At line: 1 char: 1
4
+ nodemon server
5
+ ~~~~~~~
6
+ CategoryInfo : SecurityError: (:)[], PSSecurityException
7
+ 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

powershell-changeExecutionPolicy

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

Article title:How To Fix FullyQualifiedErrorId : UnauthorizedAccess - A Powershell Error
Article author:Hong C.
Release time:Jan 3, 2024
Copyright 2025
Sitemap
Privacy Policy
Terms of Service

Theme by Astro-Yi