I am looking to run an Alteryx file with powershell through task scheduler in Windows 10. I have everything working, when the computer is unlocked, since I can send keys, however when the computer locks, sendkeys does not work and my script fails.
Since I want to run the file early in the morning, I need this to work when computer is locked. Any help would be appreciated.
start-Process -Filepath <span class="hljs-string">"filepath.yxmd"</span><span class="hljs-built_in">sleep</span> - s 60<span class="hljs-variable">$obj</span> = New-Object -com Wscript.Shell<span class="hljs-built_in">sleep</span> - s 3<span class="hljs-variable">$obj</span>.sendkeys(<span class="hljs-string">"^{r}"</span>)It is a bummer cause Alteryx want users to pay more money to schedule files...