It keeps saying this when i try to run a command in powershelll, how do i fix it?

Sean Pante 0 Reputation points
2024-10-22T07:04:15.8333333+00:00

this is supposed step to run tiny11 maker, i have to set the policy from bypass to unrestricted, but it keeps saying thisCapture

Windows for business Windows Server User experience PowerShell
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-10-23T06:45:55.3033333+00:00

    Hello Sean Pante,

    The CurrentUser scope takes precedence over the LocalMachine scope. If you want the execution policy of the LocalMachine scope to take effect, set that of the CurrentUser scope to undefined.

    Please refer to this link.

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-5.1

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

  2. Rich Matheisen 47,901 Reputation points
    2024-10-22T15:20:29.98+00:00

    This is a problem caused by a policy set by your organization (or by you). Or, perhaps you've run this as an administrator?

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

    You can run this to see what execution policies as set at which level:

    Get-ExecutionPolicy -List

    0 comments No comments

Your answer

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