When providing script to customers, Script will not execute unless they did set-executionpolicy.
What is the common practice when providing a script to customers?
Whether set-executionpolicy would be run as first command in script so that it would execute without any error or some documents will be captured about set-executionpolicy.
I am giving powershell script first time to our customers. Previously i simply use to execute in our environment so i did not think about it.
Some one please help me to get some light on this
One approach:
Also a send a bat file as a wrapper to the .ps1 which will do something like: