Quantcast
Channel: Christopher Dargel's Exchange and Windows Blog » schedule
Viewing all articles
Browse latest Browse all 2

Task scheduling a batch command

$
0
0

Hi,

if you ever would start a batch command by Windows task scheduler you might wonder, why the command isn’t executed if noone is logged in. I run in this issue while migrating a file server. I wanted to do a synchronize job every night but scheduling only succeeded when I was logged in.

If you want to do this automated without login, you’ve to pass the commandline as parameter in the “Action” section:

Action: Start a program
Settings: program / script: “C:\Windows\System32\cmd.exe”
Add arguments (optional): /C C:\batch.bat”

Cheers,

Chris



Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images