Hi,
I have a JEA configuration and I would like to run some external script in a JEA remote session.
I defined the VisibleExternalCommands in my psrc file:
VisibleExternalCommands = 'C:\temp\StartTask.ps1'
The StartTask.ps1 script contains this:
Start-ScheduledTask -TaskPath "\restart\" -Taskname test_task
But I always get this error message in the JEA session when I run StarTask.ps1 :
Start-ScheduledTask : The term 'Start-ScheduledTask' is not recognized as the name of a cmdlet, function, script file, or operable program.
**
Outside of JEA session the StartTask.ps1 script runs without problem.
What is the issue?