So it would appear that this is because of the execution policy. I am getting this:
File \<shared_path>\Deployment\ps-script-dotnet-install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
- CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
- FullyQualifiedErrorId : UnauthorizedAccess
I would like to "Bypass" the execution Policy flag by using:
PowerShell.exe -ExecutionPolicy Bypass -File
How do I do this within the GPO, there is an option for Script Parameters, but I am not sure how to add the bypass parameter.
Please help.