Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Set-ExecutionPolicy Unrestricted - Can I add this to my custom scripts?

$
0
0

As I learn an test PowerShell, I always run the command below so I can excute the ps1 script.
Set-ExecutionPolicy Unrestricted

I don't want to leave servers in this state.  Is there something I can put in my scripts that will allow me to run scripts, but not leave it in Unrestricted mode?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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