question

asafdavid-6221 avatar image
0 Votes"
asafdavid-6221 asked asafdavid-6221 commented

How to execute an executable (GoogleDriveFS.exe) from Task Scheduler on Win 10

Hi,
I'm trying to create a task scheduler to start "C:\Program Files\Google\Drive File Stream\50.0.11.0\GoogleDriveFS.exe" every night.
My task command is: "C:\Program Files\Google\Drive File Stream\50.0.11.0\GoogleDriveFS.exe"

when I hit "Run" the task status is changed to "Running" but the executable is not started.

what I already tried:
1. to use "C:\Windows\System32\cmd.exe" as the command and this as argument: /c "C:\Program Files\Google\Drive File Stream\50.0.11.0\GoogleDriveFS.exe"
2. to change the user from my user to SYSTEM

when I run "C:\Program Files\Google\Drive File Stream\50.0.11.0\GoogleDriveFS.exe" from the terminal - it works.

windows-10-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KenDevguy-2340 avatar image
0 Votes"
KenDevguy-2340 answered asafdavid-6221 commented

Select the task properties and make sure the checkbox 'Run with highest privileges' is ticked.

That should help you.

Another thing, the task MMC will show 'Running' even it the task has finished its work. Be sure to refresh (F5) on your keyboard to see if it has changed back to 'Ready'.
This is just a quirk of the Task Scheduler MMC.
Ken

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It still doesn't work.
I used this as the command: "C:\Program Files\Google\Drive File Stream\50.0.11.0\GoogleDriveFS.exe"

0 Votes 0 ·