login about faq

On Windows 2012 / Windows 8 if the automated sftp script is run via Windows Task Scheduler, the job is running fine “Run only when user is logged on” is selected but the task is changed to “Run whether user is logged on or not”, the job will run but the files are not transferred. The same scheduled task is working fine on Windows 2008/2003.

asked Dec 17 '15 at 08:58

SSH%20KB's gravatar image


Windows 2012, Windows 2012 R2, Windows 8, Windows 8.1 has a known issue that it takes up to a minute for the user profile to be properly loaded when running a batch job that loads the user profile for the first time.

This then leads to any application in the batch job that needs the USERPROFILE to use a wrong user profile. Please see the article "Scheduled tasks reference incorrect user profile paths" for more details.

The workaround of using a dummy process could be for example running ping as the user before the actual script:

ping -n 600 localhost


answered Dec 17 '15 at 09:03

SSH%20KB's gravatar image


edited Dec 22 '15 at 21:41

SSH%20doc's gravatar image

SSH doc ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 17 '15 at 08:58

Seen: 7,324 times

Last updated: Dec 22 '15 at 21:41

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.