Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So in cygwin bash I am able to type "powershell" to bring me into a powershell prompt but it won't load my powershell profile.ps1 due to not being able to execute scripts, but I can't set the execution policy in this prompt...

So I tried running the default powershell prompt (as administrator) and was able to set the execution policy to remote signed, but it doesn't affect the powershell within bash

what am I missing?

Bash Powershell Powershell As Administrator

share|improve this question

You can bypass this:

powershell -ExecutionPolicy bypass
share|improve this answer

You could run this from your bash shell:

 powershell -ExecutionPolicy RemoteSigned 


For me this works without the dash before cmdlet so:

powershell ExecutionPolicy RemoteSigned

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.