We are performing some tests with server 2012, in regards to our PowerShell scripts and we’ve run into some issue that we figured out, as far as the ExecutionPolicy, but now I’m getting another issue. I’m trying to call a custom function that compiles an application switch to test the validity of its license. The issue I’m seeing is when I try to call the function, I’m getting a popup and I want to eliminate that so that it runs without any user interaction.
the popup says:
“Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning message.”
I tried to do the Unblock-File, is hasn’t worked…