DEV Community

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

Posted on

2 2

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.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs