We are trying to run a powershell through the scheduler but we are running in to issues. I can run through a command prompt just fine but I cant get it to run through a job. is there a certain way I need to set it up?
Release : 12.0
Component : CA Workload Automation AE (AutoSys)
Here's example of a job running PowerShell to test network communications. Note the command attribute as you have to call powershell and then pass the appropriate arguments.
Again, this is just an example:
/* ----------------- SAB.POWERSHELL_JOB ----------------- */
insert_job: SAB.POWERSHELL_JOB job_type: CMD
command: powershell Test-NetConnection -ComputerName lvndev01 -port 7523