-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.2.0: Errors because of PowerShell execution policy #483
Comments
@SkynetHopper if you run Have you both tried either right-clicking the powershell file in question and clicking button "unblock file" Or you can point the unblock-file command at the profile.ps1 file. If that works I'll have to look at doing that in a setup step. You should be able to leave your executionPolicy as remotesigned. |
Thanks Jack! Unblocking the .ps1 file worked! But its missing git support Running get-executionPolicy -list does show it as remoteSigned. On Mon, May 18, 2015 at 1:27 PM, Jack [email protected] wrote:
|
I should stress that, while the problem might easily be fixa le by anyone with some PowerShell knowledge by themselves, it makes for a pretty bad user experience and first impression. It would be better if Cmder would set the execution policy itself if needed (and inform me about it), or if at least the docs would mention anything about the setup required. |
You are correct. We are trying to find a balance between what we really need and not just changing global settings for users. |
@denisw There isn't much we can do unfortunately, overriding built in security protections isn't something I'm willing to do, even though I feel they're a bit heavy handed. |
@MartiUK If it isn't possible to make it nice, perhaps cmd.exe would be a better default choice after all as it works out of the box. I think that together with docs to make PowerShell work well, this would make the initial experience as nice as the one in 1.1 again. |
I think there's a way around it, I'm making a new vm to test this stuff from scratch. The execution policy is more like a bad default and a not feature than it is for security. What I don't want to is run the whole session in bypass. |
Running this as administrator did the trick for me.
|
So... the official solution is to open EDIT: Just realized this issue was still open; thought it was closed due to "check the last comment" in #507. |
If you don't want to use |
Could we have cmd.exe as default again for v1.3 if this cannot be resolved automatically? At least that would work right away without error messages and configuration. |
Or they could add |
I much prefer Process being set automatically. Thanks @malobre! |
I second that the @malobre's approach would be the most elegant one! |
I just wish we could force to run our own init/profile script and drop back to At least launching the process with -bypass is just for you cmder session and not anything that run on the computer. You wouldn't get any warning about running a script explicitly as I thought about signing our own script but we'd still have the same problem but with managing the key instead of the exec policy. |
Shouldn't cmd.exe be the default because it is always installed and in working order on all windows systems? Added the policy bypass flag and then get error because I need to install posh-git module. Very frustrating to be forced into using powershell instead of simply giving instructions for those who want to use powershell. How do I change this default task to use cmd.exe? Update: found how to change it in the release notes https://github.com/bliker/cmder/releases Also I see it is labeled as "The powershell release" So I will try to embrace powershell and if it doesn't work out, go back to the 1.1.4 release. |
Thanks a lot!Unblocking the file profile.ps1 worked for me too.I navigate to the directory where contains the profile.ps1,then run command |
For those who are having trouble with this, this is what I did to fix on Win10. |
For those who have scrolled down here and still don't know how to fix it. |
Is it possible to change settings and make cmd.exe default when Cmder starts ? :( |
setting->startup->tasks>default shell |
Could someone please give clear instructions how to get rid this error message? I’ve tried to follow instructions mentioned in the comments above, but nothing has worked so far.
|
I'm still having issues with this despite having updated to the latest version. |
1.2.9? |
If you've not changed your execution policy you'll still get that with If you're a powershell user you need to set your execution policy as So from an admin prompt, "Set-ExecutionPolicy RemoteSigned" then I think On 8 December 2015 at 10:38, Martin Kemp [email protected] wrote:
|
|
#483 (comment) |
The first time I start Cmder 1.2.0, I get an error that a script cannot be executed because the PowerShell execution policy doesn't allow it. After I have run
Set-ExecutionPolicy Unrestricted
as administrator, the shell asks me every time on startup whether I really want to run the script.The text was updated successfully, but these errors were encountered: