enable script in powershell

Stephen Ho 0 Reputation points
2026-08-16T08:02:50.79+00:00

in windows powershell, how to enable the input of scripts

Windows for home | Windows 10 | Performance and system failures
0 comments No comments

2 answers

Sort by: Most helpful
  1. _AW_ 68,741 Reputation points Volunteer Moderator
    2026-08-16T11:09:42.68+00:00

    What is the output from the following PowerShell command? Post a screenshot.

    Get-ExecutionPolicy -List
    

    Was this answer helpful?

    0 comments No comments

  2. DaveM121 917.4K Reputation points Independent Advisor
    2026-08-16T08:37:50.39+00:00

    Click your Start Button, then just type powershell and on the resulting list, right click PowerShell and select 'Run as Administrator'

    When PowerShell opens, the prompt should be at C;\Windows\System32.

    Test if you can then run your script.

    If not, in PowerShell run this command and press Enter:

    Set-ExecutionPolicy Unrestricted

    Then run your script in PowerShell

    After running your script, ensure you run this command.

    Set-ExecutionPolicy Restricted

    Was this answer helpful?

    0 comments No comments

Your answer

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