Hey Folks,
Thank you all for the help, this forum is fantastic!
I have a command line that does something with logs for a specific application. I want to take that command line and "store/wrap" it in a ps1 script, then schedule it to run at specific times during the day.
I've tested the command line out using a standard cmd console, I don't have to run it as administrator.
How can I put it into a ps1 file and then schedule it? I've tried to put it into a powershell script with just the command to run and that fails, and I also tried to put it into a batch file and that fails, I'm sure it's easy to do, but I'm not having much luck.
I'd also like to email out when the scheduled task runs and I have a script I can re-use for the email portion I think but I can't get that to run as a scheduled task either ![]()