[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:
  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



Lim Sing

I am a Backend Developer