Home » Windows OS

SyncToy 2.1 ; Windows 7 ; 32bit ; fails when using Task Scheduler but works manually

I have established a number of folder pairs between a local disk and a NAS drive and can successfully run a synchronisation manually - both from within SyncToy (ST) and from a DOS window.  However, if I schedule ST using the W7 task scheduler the task is scheduled properly but fails to run. The scheduled task runs under my User ID - the same one I use to run ST manually.  The NAS drive is also used successfully by ST 2.0 on a Win XP 32bit machine connected to the same network


I see the following in the History tab in Task Scheduler:


Information    17-Jun-2010 4:12:00 PM    102    Task completed                                            (2)    0882488a-bf11-4f79-9a3a-aaf2ae7768d2
Information    17-Jun-2010 4:12:00 PM    201    Action completed                                          (2)    0882488a-bf11-4f79-9a3a-aaf2ae7768d2
Information    17-Jun-2010 4:12:00 PM    129    Created Task Process                                   Info   
Information    17-Jun-2010 4:12:00 PM    200    Action started                                               (1)    0882488a-bf11-4f79-9a3a-aaf2ae7768d2
Information    17-Jun-2010 4:12:00 PM    100    Task Started                                                (1)     0882488a-bf11-4f79-9a3a-aaf2ae7768d2
Information    17-Jun-2010 4:12:00 PM    319    Task Engine received message to start task    (1)   
Information    17-Jun-2010 4:12:00 PM    107    Task triggered on scheduler                          Info    0882488a-bf11-4f79-9a3a-aaf2ae7768d2


The following is from the ST log:


SYNC: 06/17/2010 16:12:00:480: Starting SyncToyCmd, version, built 19-Oct-2009 2:58:16 AM.
SYNC: 06/17/2010 16:12:00:612: *** Failed to execute folder pair Primary photographic area. Could not locate folder M:\Photography\Primary Area\.
SYNC: 06/17/2010 16:12:00:612: *** Failed to execute folder pair Miscellaneous. Could not locate folder M:\Photography\Miscellaneous\.
SYNC: 06/17/2010 16:12:00:612: *** Failed to execute folder pair Work Areas. Could not locate folder M:\Photography\Work Areas\.
SYNC: 06/17/2010 16:12:00:612: *** Failed to execute folder pair Communal Work Area. Could not locate folder M:\Communal Work Area\.


I would love some help on this one :-).  Other people seem to have ST 2.1 running properly on W7 so I presume I am doing something dumb but what?


Additional piece of information I forgot to include: the "M" drive is the target drive, i.e the NAS drive


1 Answer Found


Answer 1

I am having the exact same problem. I thought it was my cheesy setup of a hard drive  attached to the USB port of my Linksys router so I bought a real NAS drive. That one failed exactly like your did (same error). Please post back here if you find an answer and I will too.


Win7/64 bit machine, SyncToy 2.1 worked fine, then stopped running correctly in Task Scheduler.  If I run on command line, it reports "has not been syncronized".  Was working fine then quit.  Manual run syncs fine.

Any suggestions?   Thanks


Vista Home Premium (32 bit), SnycToy 2.1

I have been trying to set up a daily automated local sync using the Task Scheduler and SyncToy.  I have set up a task in Task Scheduler as per the SyncToy instructions.  I am using the command line option (..SyncToyCmd.exe" -R) option to batch all folder pairs.  I can run the sync on demand successfully, but the scheduled sync won't run. 

The task is enabled. I have selectd the "Run with highest privileges" option There are no conditions set I am the only user on this computer and I am the administrator.  The computer has a password. 

When the scheduled time passes, the "Next Run Time" resets to the following day, but the sync doesn't run and there are no errors generated.  It appears as if it ran but the cmd window doesn't pop up (as it does when run on demand) and files aren't synced.  Nothing happens.

As a test, I chose to schedule using the ...SyncToy.exe file (without the -R) arguement, and the scheduler will sucessfully launch the program, but of course, doesn't sync.

Any ideas of why Task Scheduler isn't running the ...SyncToyCmd.exe as scheduled?  Any help would be appreciated.



I have a requirement to hit the a web service that is a part of my asp .net web application at a regular interval, so I created an exe to query the web service, and scheduled it with the Windows task scheduler on the host box. The issue is that my entire web application uses windows authentication, so I always receive a 401 when the task runs (since the task is being executed by a local-box user and not authenticated with NTLM).

Is it possible to disable all authentication just for the web service asmx file in the web.config, or will I have no choice but to run the task as a user that can authenticate over NTLM (not really wanted for my environment)

I also seem to have an issue where configuring the webservice url in the app.config is being ignored by the web service (even though the service url is set to 'dynamic' in the application). Being able to configure the service path AFTER compiling the app is required since it will be deployed in different environments. 

I have a simple console application that has this in mainline: 

Console.WriteLine(System.String.Format("the current directory is: {0}", System.IO.Directory.GetCurrentDirectory()));


File.WriteAllText(@"test.txt", "new contents");  


I compile this in VS 2010 and copy the EXE to a directory named "c:\test".  When I run this code in two different OS's via "Task Scheduler" and "Scheduled Task" I get different results.  

In Windows Server 2003 R2 "Scheduled Task" this code will create a file as I would expect, c:\test\test.txt with the proper contents written to it. 

When I run this same code on Windows 2008 R2 (64 bit version) "Task Scheduler" it writes the expected contents to an unexpected location, c:\C:\Windows\SysWOW64\test.txt.

In both environments if I run the exe's from a command line, it writes to c:\test\test.txt as I would expect.

As I understand it, if you don't fully qualify the file name in the first parameter of the WriteAllText method it will write the contents to the file in the directory of the executable however this seems to break down when running in the Windows 2008 Task Scheduler.  I know I can fully qualify the file name or put the expected path in a XML somewhere with the location of where to write the file but this breaks down a convention that I use.  Any ideas why this behavior does what it does?



i'm using TaskScheduler.dll to use scheduling functionality in my app. i don't have problem with win 7, but in win xp, the task doesn't run.

for more info plz see my sample project which run calc.exe in your scheduled time.

can anybody help me to work-around the problem ?

thanks in advance

I have configured a Event viewer task on Windows server 2008 to monitor all the scheduled tasks and send me  an alert when ever a scheduled task fails or throws some error. I have already tested it and it is working fine. But the problem comes when i log out of the machine i get an alert for failed scheduled task.When i login and check there are no failed scheduled task and even then i am getting an failed alert. Is this related to any security issues...Please answer...

I have already configured the Event viewer task to run under my account( with whether user is logged in or not option ) with highest privileges.

Thanks in advance.

I have found the following article which seems to explain entirely how to work with Windows Task Scheduler:

But I want to be able to work within XP, Vista, and Win7. What I am not sure about is if there is a completely different version of the task scheduler in XP, and it I need different libraries to access it. If so, are there any example wrappers that can work with both schedulers? Help!

Hello Everyone! I have scheduled about 5 jobs in Windows scheduler on my Windows2003 server. The jobs executed 3 times and stopped after that. It displayed "Could not start" as the status. I tried to execute it manually but in vein.

Does anybody know what has gone wrong here?

Thank you for your help.




I've implemented a custom Task Scheduler in similar way as it appears in Parallel Extensions Samples package.

According to my scheduling algorithm, certain tasks must be canceled before running when some other task fails. Is there any possibility to dispose of a task when queued to the scheduler but before run? Now when I try to dispose such task, I get an exception. Using cancellation mechanism seems to be problematic in specific situation because I do not want to involve application logic in internal scheduling features. Moreover, it seems strange that scheduler should call cancel() then start task then dispose only to get rid of a task.





I am using/learning the Windows Task Scheduler in win32 C++. I am attempting to retrieve a task object (for a task that exists) but it continually fails & returns the error COR_E_FILENOTFOUND 0x80070002 = The task does not exist

What do you think is going wrong? I know this task exists because I create it (& it does what its supposed to do, open an app at specified time).

Maybe the task name I use to retrieve the ITask object is not correct? The status (priority?) of the task I create is == 3 (if that info helps).

The code I use to create a task is exactly the same as the example code from <a href="http://msdn.microsoft.com/en-us/library/aa383624(v=VS.85).aspx">msdn</a>, the task name is "MyTaskSascha".

Is there anything wrong with my code to retrieve an existing task (I believe the task I am trying to retrieve is not considered "Running" but "Scheduled" so that maybe the problem?):

  return 0;


  bool RetrieveTask( std::string taskName )
	// Post: 

	ITaskScheduler *taskSched = NULL;
	ITask      *task   = NULL;
	HRESULT     hr     = S_OK;
	HRESULT     taskStatus = NULL;

	LPCWSTR wTaskName;
	wTaskName = L"MyTestSascha";

	/// Initialise COM library & obtain Task Scheduler object

	hr = CoInitialize( NULL );

	if ( FAILED(hr) )
		printf( "Failed to coinitialise hresult \n" );
		return false;

	hr = CoCreateInstance( CLSID_CTaskScheduler, NULL, CLSCTX_INPROC_SERVER, 
		          IID_ITaskScheduler, (void**) &taskSched );

	if ( FAILED(hr) )
		printf( "Failed to create instance \n" );
		return false;

	/// Obtain task object

	hr = taskSched -> Activate( wTaskName, IID_ITask, (IUnknown**) &task );
	taskSched -> Release();
	std::cout << wTaskName << std::endl;
	printf( "%s \n", wTaskName );

	if ( FAILED(hr) )
		if   ( hr == 0x80070002 ) { std::cout << "The task does not exist \n"; }
		else if ( hr == 0x80000003 ) { std::cout << "The pwszName parameter is not valid \n"; }
		else if ( hr == 0x80070057 ) { std::cout << "A memory allocation failed \n"; }
		else if ( hr == 0x80041313 ) { std::cout << "The task object version is either unsupported or invalid \n"; }
		printf( "Failed retrieving task object %x \n", hr );
		return false;


Hello SyncToy Forum users,

Could you pls advise whether SyncToy tool can be integrated with Windows task scheduler, so that File/folder synchronization to be schedule enabled?

If not, is there any alternative for file/folder synchronization schedule?

Any advise will be much appreciated.

Rgds, Nick


Dear All,

I failed to install VC++ Runtime on Windows 7 32bit, I spent a week without any succsess.

I am using Windows 7 Professional 32 bit and I have MS Office 2007 Installed. Arabic Unicode setting.

Looking for your support.




I'm using SyncToy 2.1 in Windows 7. I have 2 different folder pairs set up. The 1st one is called Adobe Folders Sync and the 2nd is System Backup. They both work perfectly fine when ran manually. I set it up to automatically sync and it works great for the 1st folder pair but it doesn't do the 2nd folder pair. Yes I did check the box that that says Active for run all. I checked out the log and this is what it says after an automatic sync:

SYNC: 08/01/2010 19:53:47:414: -------------------------------------------------------------------------
SYNC: 08/01/2010 19:53:47:432: Starting SyncToyCmd, version, built 10/19/2009 2:58:16 AM.
SYNC: 08/01/2010 19:53:49:132: Started scanning directory : C:\Users\Jordan\Desktop\Shortcuts\Adobe\
SYNC: 08/01/2010 19:53:49:133: Started scanning directory : C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe\
SYNC: 08/01/2010 19:53:49:390: Stopped scanning directory : C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe\
SYNC: 08/01/2010 19:53:49:700: Stopped scanning directory : C:\Users\Jordan\Desktop\Shortcuts\Adobe\
SYNC: 08/01/2010 19:53:50:307: Preview of Adobe Folders Sync (C:\Users\Jordan\Desktop\Shortcuts\Adobe\, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe\) in time 00:00:01:111.
SyncToy action was 'Synchronize'
Found 0 actions to perform.
Found 44 files that did not require action.
Analyzed 39.6 files per second.
Avoided copying 181,070 bytes in 44 files.

SYNC: 08/01/2010 19:53:51:367: SyncToy run of Adobe Folders Sync (C:\Users\Jordan\Desktop\Shortcuts\Adobe\, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe\) completed at 8/1/2010 7:53:51 PM.
SyncToy action was 'Synchronize'.
SyncToy options were:
 Active for run all
 All files included
 No files excluded
 Do not check file contents
 Include read-only files
 Include hidden files
 Include system files
 Do not backup older files
 All subfolders included
SyncToy run took 00:00:01:056.
Copied 0 bytes in 0 files in 00:00:01:56.
Bytes per second 0.0, files per second 0.0.
Avoided copying 181,070 bytes in 44 files that did not require action.

SYNC: 08/01/2010 19:53:52:625: Started scanning directory : C:\Users\Jordan\
SYNC: 08/01/2010 19:53:52:625: Started scanning directory : \\DESKTOP\System Backup\

So it started scanning but never did anything after that. Can you help please?

Thank you!!

Other than some of the more positive reports here, I have to report (in line with a couple of others who experience the same issues) that  SyncToy does NOT work with Windows 7.

* For small folders (few items) SyncToy will work fine

* For larger folders (hundreds of items or more, nested folders), SyncToy will show either of the two behaviours:

   - It starts to synch and will hang sometime into the process, with the only option to kill it.

   OR, even more disturbing:
   - It completes the snych, reports success, but if you compare the left and right folder, you will find it did not complete.

So, at this stage, SyncToy is NOT safe to use with Win7 and we should expect Microsoft to acknowledge this and provide an update as soon as possible. Thx!

PS: Test-Setup: 2 PCs, one with Win 7 RC, the other with Vista SP2.

Hey ,

A FTP Task in IS pkg is working fine when executed through BIDS in my Win XP machine ..but the same package is not working in Win 7/2008 machine.

FTP task fails with the error :
[FTP Task] Error: Unable to connect to FTP server using "FTPFolder.TempData.com".

Here are few facts about my troubleshooting :

1) From my XP machine... I am able to connect to the FTP Server using DOS Cmds but fails in 2008 machine saying "Unknown host"
I did :
Run>Cmd>FTP>Open FTPFolder.TempData.com

2) I can view the files on the FTP server through a browser ( URL was given )on both the machines with no issues.

3) I created Port exception for 20 & 21 Ports for 2008 machine ...still no luck.

4) When I PING the FTP server --Cmd>PING FTPFolder.TempData.com
On XP Machine...though FTP Server Name is resolved to IP... I still receive "Request timed out."
On 2008 Machine ...the IP is not even resolved and error is thrown "Ping request could not find host FTPFolder.TempData.com. Please check the name and try again."

5) I am connecting to FTP Server from my Office machines.

I have searched all the threads on this FTP error topic and haven't found the apt thread..so I have opened a new one.



I don't know why (under the single entry mode ) the when click task name of my task in the "Tasks" or "TimeSheet" , the "Runtime Error" happened.

Error Info Like below:


Server Error in '/' Application.
Runtime ErrorDescription: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

    <customErrors mode="Off"/>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

I don't know why ? Please help me!


I would like to know the easier way to upgrade windows 2003 32bit to windows 2003 64bit beside reinstalling the OS. Thanks.


My question comes from a particular task that I want performed when a program is started. It comes out of the need to stop an add-on once Internet Explorer is started. I don't want to disable the add-on, and in fact it will restart itself when it discovers that it is turned off via the process manager in Windows Task Manager.

Fact is, the program is the "GoogleToolbarUser_32.exe" and is needed to utilize Google's Toolbar. But, the problem lies in that the program hangs and uses one full CPU when IE is first started up. End the process and it restarts without the CPU hungry bug that takes up so much resources.

I know I can wait until Google fixes this problem but I would like to deal with it myself until then. Using Task Scheduler seemed the most logical method to accomplish this task. But I can't seem to find the procedure that would be used to do this, if any. Seems like this would be a common request. Not so much to shut down a problematic program but in other regards. Say to detect when a program starts, to say, start a log or something of the sort.

Thank you in advance and I hope this is easily accomplished.  Jerry


Not sure if this is a bug, but we have a script we use to backup (after export) data from SharePoint sites.

This script is deployed on 2003 server 32bit  and 2008 server 32 bit and works as a scheduled task on both environments.

The same script does not work under task scheduler on server 2008 but does run from file explorer when you double click it.

Where would I submit this?

Thank you



How to enable Task Scheduler service in Windows programmatically?

I write an application that create a scheduled task. I need to determine if the Task Sheduler is enabled or not and if that is disable, enable it.

 second, i want a function in my application is invoked. How can i set the parameter that when application start in its schedule a specific function run?


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure