[Solved] Running scripts is disabled on this system

Lim Sing
1 min readSep 20, 2020

I run this code to execute PowerShell code from an react native application:

Solved by :

  1. Run powershell as adminstrator
  2. Check excecution policy by running:
    Get-ExecutionPolicy
  3. Then u will see ‘Restricted’, means the main reason to run ur script been restricted
  4. To change this policy, can run :
    Set-ExecutionPolicy Unrestricted
  5. Then fixed, u can run ur script again

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Lim Sing
Lim Sing

No responses yet