Hello my good folks,
Learning Powershell. I have been a db programmer and new to infrastructure programming.
I have a powershell script (say GetMetrics.ps1) . I can manually schedule this script as a task in windows job scheduler.
But I don’t want to do this manually. I want to use powershell script to schedule this script as a task.
The reason being, we are bringing up an EC2 windows instance on AWS using cloudformation script. it works fine. Once that instance comes up I want to run a powershell script that can go and configure my GetMetrics.ps1 as a task on windows scheduler.
How can I do that? Are there any scripts available to do this?
Thanks and kind regards
jason