Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

You could run this from your bash shell:

 powershell -ExecutionPolicy RemoteSigned 

EDIT

For me this works without the dash before cmdlet so:

powershell ExecutionPolicy RemoteSigned

share|improve this answer

You can bypass this:

powershell -ExecutionPolicy bypass
share|improve this answer

Your Answer

 
discard

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.