We are using "Install Applications according to a dynamic variable list" to install our apps. This PS script is used at the end of the task sequence to clean out the variables placed in the computer Properties Variables tab. It works fine when running within Windows but cannot get it to run via task sequence when Windows is still in provisioning mode.
I am running a command line in the task sequence running with an admin account
This is the error in the log:
File C:\_SMSTaskSequence\Packages\SA100154\RemoveOSDVariables.ps1 cannot be
loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: ( [], ParentContainsErrorRecord
Exception
+ FullyQualifiedErrorId : UnauthorizedAccess
I use the same account in the task sequence to launch VB scripts.
Thanks for your help