Hello,
I am new to usage of powershell. I am trying to execute (call) a powershell script through the BMC Control-M batch processing program via a Command Line.
The command I am using is: powershell "D:\jobs\NOC\CallJobWithStepPPD.ps1. The D refers to the path on a server. The error I get when I try to execute the command is:
powershell "D:\Control-M\CallJobWithStepPPD.ps1'' 'PPD_D_FI_CCC' 'EMAIL_USERS'
File D:\Control-M\CallJobWithStepPPD.ps1 cannot be loaded because the execution
of scripts is disabled on this system. Please see "get-help about_signing" for
more details.
At line:1 char:38
+ D:\Control-M\CallJobWithStepPPD.ps1'' <<<< 'PPD_D_FI_CCC' 'EMAIL_USERS'
+ CategoryInfo : NotSpecified: (:) [], PSSecurityException
+ FullyQualifiedErrorId : RuntimeException
I have verified that the ExecutionPolicy is set to Unrestricted. Can anyone provide any guidance on what might be causing this error? Thanks