Powershell JEA not working
Hi,
I created a JEA config for a server in PowerShell, but one command not working in the user's JEA session.
I put two commands to my Role Configuration file:
VisibleCmdlets =
@{ 'Get-ScheduledTask' ; Parameters = @{Name = 'TaskName' ; ValidateSet = 'TestTask'}},
@{ 'Get-Service' ; Parameters = @{Name = 'Name' ; ValidateSet = 'spooler'}}
He is able to run the "Get-Service spooler" command in his JEA session, but when he try to run the "Get- ScheduledTask -Taskname TestTask" command, he is getting this error:
the term ' Get-ScheduledTask ' is not recognized as the name of a cmdlet
Why JEA can't recognize the Get- ScheduledTask command?