Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Finding the right powershell to set Execution Policies?

$
0
0

So, I wrote some hta, that calls vbs, that calls powershell Script.

Now, there are two ways around it:

1) I need to set the execution policy of my powershell to unrestricted to run those scripts. Now, there seem to be 2 powershells in windows: the one I, the user open and the one that vbs calls upon. When I change the execution policy in the powershell I can call, vbs opens another powershell and tells me it can't execute scripts. When I check, execution policy is still set to unrestricted. So: how do I fix this? (aka: Where do I find the "right" powershell to set execution policy?

2) I guess I can sign my script, somehow, so windows recognizes it as "save"? How whould I do this? (As this would be the better option^^)


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>