0

I have this command in a powershell script file. When I run the script from the powershell, it'll start photoshop and do some scripted things before photoshop quits it selves.

Start-Process "C:\Program Files\Adobe\Adobe Photoshop CC 2018\Photoshop.exe" -Wait

But when I run the powershell script with windows task scheduler, it doesnt start photoshop at all.

Powershell.exe -ExecutionPolicy Bypass "C:\path\scriptPS1"

The task is running as my own user.

odadoda
  • 127
  • 7
  • Is your scheduled task set up like [this](https://stackoverflow.com/questions/23953926/how-to-execute-a-powershell-script-automatically-using-windows-task-scheduler)? – qbanet359 Feb 22 '18 at 16:03
  • Yes it is. I have more commands in the script file. And they work fine. Its just that photoshop will not open or start. – odadoda Feb 22 '18 at 16:21

1 Answers1

0

When I checked off "Run whether user is logged on or not", it worked.

I managed to find this out when i created a single task in the task scheduler that only started Photoshop by it self. And when I turned on the "Run whether user is logged on or not", the task scheduler was unable to start photoshop.

enter image description here

odadoda
  • 127
  • 7