I am running into the following issue :
I have a task scheduler job running across a number of Azure VMs, it is scheduled to run at ~11pm every wednesday.
From what I can see the script executes the required change, however it does not generate the log output file
the argument I use is the following:
-F C:\Users\Admin\Desktop\scripts\automatexml_weu.ps1 -Verbose > C:\Users\Admin\Desktop\scripts\xml_script_logs\xml_script_output_$(Get-Date -format "yyyyMMdd").log
But the log file is never generated.
If I run the above command outside of Task Scheduler it works with no issues
Anyone have any ideas where I am going wrong?
Thanks in advance