DEV Community

Cover image for Windows - How to allow script execution on Windows
Flavio Campelo
Flavio Campelo

Posted on

Windows - How to allow script execution on Windows

📮 Contact 🇧🇷 🇺🇸 🇫🇷

Twitter
LinkedIn


How to allow script execution on Windows

If you're trying to execute an script and you receive a message like that

Image 1

You can change your policies manually to be able to execute them.

# This sample will enable the current user to execute all of signed scripts.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Enter fullscreen mode Exit fullscreen mode

Image 2

You can find further details about ExecutionPolicy on this page from the Microsoft documentation.

Typos or suggestions?

If you've found a typo, a sentence that could be improved or anything else that should be updated on this blog post, you can access it through a git repository and make a pull request. If you feel comfortable with github, instead of posting a comment, please go directly to https://github.com/campelo/documentation and open a new pull request with your changes.

Top comments (0)