-
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
PowerShell init scrip #136
Comments
First of all. I think this a amazing and clever idea. But his is section confused me
Does this mean that even signed PS scripts will be refused on win8? I will follow up on more stuff tomorrow. |
Yep. Restricted you can only use the powershell console. .\myscript.ps1 will not execute. I assume this is so you can't sign a script with a stolen cert or one that's from the trusted root publishers and run some of the more "drive by" type exploits people did with report.doc.bat emails. MS are pretty adamant the execution policy IS NOT a security measure, it's more to stop people shooting themselves in the foot. Maybe this was the deal the MS PS team had to make to get PS shipped by default in windows. They've lowered the policy for server 12 R2 so that's hopefully a sign of things to come. Since you can't manage server core without it. The concept seems similar to linuxes way of making the user chmod -x shell scripts. Plus there's the whole |
I just renamed the issue |
BTW, I'm running my "portable" powershell with following batch |
Have you tried PowerTab or PSReadLine extensions? |
This still needs a solid answer but referencing #100 for future work. |
Looks like it was more to have the related discussion included as it's not directly a follow on. Basically I just don't have a good answer for signing. It's kind of a misfeature. |
Ah, gotchya. Yeah.. seems like someone just needs to inject some money in this project 😃 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution. |
This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution. |
I want to have a look at getting powershell to the same usable state CMD+clink is because I think it's just better but anyway;
If you download Cmder, run a build/install script I'm thinking it could generate its own certificate, sign itself as the host user account, then sign the Cmder scripts it needs to run.
That way;
remoteSigned
which is [the best state][1] for a developer. Maybe evenallsigned
as anyone whose a powershell dev will set it anyway.Some Cons;
Pros:
*Maybe it's ok to sign scripts for Cmder itself the one time it's run. You have to add this cert to the host computer is that acceptable for any computer you can walk up to with a pendrive "run as admin" ?
I would love to wrap the ISE in Conemu but the ISE won't do interactive consoles so that's using git out. It would be sweet if someone could just rip the ISE engine with intellisense and syntax highlighting to use in a console window.
[1]: http://technet.microsoft.com/en-us/library/hh847748.aspx - search for "2012 R2"
The text was updated successfully, but these errors were encountered: