<p>Does anyone know if you can and how to start off a scheduled Windows task on a Remote Server from within a SQL Server Integration Services (SSIS) package?</p>

[{'answer_id': 37570, 'author': 'Ubiguchi', 'author_id': 2562, 'author_profile': 'https://Stackoverflow.com/users/2562', 'pm_score': 0, 'selected': False, 'text': '<p>It should be possible as the Task Scheduler has a scriptable <a href="http://msdn.microsoft.com/en-us/library/aa383614%28VS.85%29.aspx" rel="nofollow noreferrer">COM API</a> that can be used for interacting with tasks.</p>\n\n<p>You could therefore either create a custom task that uses COM interop to call the Task Scheduler API, or it\'d probably be quicker to use an Active X Script task to do your dirty work.</p>\n'}, {'answer_id': 38124, 'author': 'Portman', 'author_id': 1690, 'author_profile': 'https://Stackoverflow.com/users/1690', 'pm_score': 0, 'selected': False, 'text': '<p>I invested a lot of time in the aforementioned COM API back in 2002. It was, to put it mildly, "flakey".</p>\n\n<p>What we ended up doing instead is having our tasks run every minute. The first thing the task did was check the database to see if it should continue running or not.</p>\n\n<p>Then "starting" a scheduled task from SSIS was as simple as changing a database field.</p>\n'}, {'answer_id': 110566, 'author': 'Michael Entin', 'author_id': 19880, 'author_profile': 'https://Stackoverflow.com/users/19880', 'pm_score': 2, 'selected': False, 'text': '<p>Assuming you run it on Windows Server 2003/2008 or Vista, use SSIS Execute Process Task to start SCHTASKS.EXE with appropriate params (<strong>SCHTASKS /Run /?</strong> to see details).</p>\n'}]
['https://Stackoverflow.com/questions/37532', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2375/']