{"id":334,"date":"2008-06-17T10:05:29","date_gmt":"2008-06-17T04:35:29","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=334"},"modified":"2022-03-19T09:13:11","modified_gmt":"2022-03-19T03:43:11","slug":"launching-a-scheduled-task-manually-using-schtasksexe","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/launching-a-scheduled-task-manually-using-schtasksexe\/","title":{"rendered":"Launching a Scheduled Task manually using Schtasks.exe"},"content":{"rendered":"<p>Schtasks.exe console tool helps you create, delete, query, change, run, and end scheduled tasks on a local or remote computer. Running Schtasks.exe without arguments displays the list of each registered task, the Next Run Time, and the Status for each task.<\/p>\n<p>For example, you may want to run the <a href=\"https:\/\/www.winhelponline.com\/blog\/automatically-backup-registry-hives-windows-10\/#regback_schtasks\">RegIdleBackup task<\/a> manually using Schtasks.exe.<\/p>\n<p><!--more--><\/p>\n<h2>Launching a Scheduled Task manually using Schtasks.exe<\/h2>\n<p>To launch a Scheduled Task item on-demand, open a Command Prompt (admin) window and type:<\/p>\n<pre>SCHTASKS.EXE \/RUN \/TN \"task name\"<\/pre>\n<p>Replace the text &lt;task name&gt; with the actual name of the task.<\/p>\n<p>If the task name is <b>Sync Files<\/b>, run the following command:<\/p>\n<pre>SCHTASKS.EXE \/RUN \/TN \"Sync Files\"<\/pre>\n<p>If the task exists under a separate folder in Task Scheduler, make sure you enter the full path:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/myapps-sched.gif\" width=\"379\" height=\"202\" \/><\/p>\n<pre>SCHTASKS.EXE \/RUN \/TN \"\\MyApps\\Regedit\"<\/pre>\n<div class=\"rp\"><strong>Related article:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/run-programs-elevated-without-getting-the-uac-prompt\/\">How to Run Programs as Administrator (Elevated) without UAC Prompt<\/a><\/div>\n<p>Schtasks.exe can also take a remote computer name as the parameter. Here are the command-line arguments for the Schtasks.exe <code>\/Run<\/code> command.<\/p>\n<pre>schtasks \/Run [\/S system [\/U username [\/P [password]]]] \/TN taskname<\/pre>\n<p><strong>Examples:<\/strong><\/p>\n<pre>SCHTASKS \/Run \/?\r\nSCHTASKS \/Run \/TN \"\\Backup\\Start Backup\"\r\nSCHTASKS \/Run \/S system \/U user \/P password \/I \/TN \"\\Backup\\Backup and Restore\"<\/pre>\n<table style=\"width: 100%; height: 110px;\" border=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td width=\"30\">\/S<\/td>\n<td width=\"157\">system<\/td>\n<td>Specifies the remote computer to connect to. If omitted, the system parameter defaults to the local computer.<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\/U<\/td>\n<td width=\"157\">username<\/td>\n<td>Specifies the user context under which Schtasks.exe should run.<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\/P<\/td>\n<td width=\"157\">password<\/td>\n<td>Specifies the password for the given user context. If omitted, Schtasks.exe prompts the user for input.<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\/I<\/td>\n<td width=\"157\"><\/td>\n<td>Runs the task immediately by ignoring any constraint.<\/td>\n<\/tr>\n<tr>\n<td width=\"30\">\/TN<\/td>\n<td width=\"157\">taskname<\/td>\n<td>Specifies the name of the scheduled task to run.<\/td>\n<\/tr>\n<tr>\n<td>\/?<\/td>\n<td><\/td>\n<td>Displays Help for Schtasks.exe.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>For detailed information on Schtasks.exe, see <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/taskschd\/schtasks\" target=\"_blank\" rel=\"noopener noreferrer\">Schtasks.exe<\/a> documentation at the Microsoft site.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Schtasks.exe console tool helps you create, delete, query, change, run, and end scheduled tasks on a local or remote computer. Running Schtasks.exe without arguments displays the list of each registered task, the Next Run Time, and the Status for each task. For example, you may want to run the RegIdleBackup task manually using Schtasks.exe.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-windows"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":335,"url":"https:\/\/www.winhelponline.com\/blog\/run-programs-elevated-without-getting-the-uac-prompt\/","url_meta":{"origin":334,"position":0},"title":"How to Run Programs as Administrator (Elevated) without UAC Prompt","author":"Ramesh","date":"June 17, 2008","format":false,"excerpt":"Recently, I came across a brilliant tip on how to run programs elevated without getting the User Account Control (UAC) prompt. This can be done without turning off the UAC and hence it does not compromise system security. How to Run Programs elevated without UAC Prompt You can run apps\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/myapps-sched.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":60308,"url":"https:\/\/www.winhelponline.com\/blog\/remove-ypsx_cloud-ytpx-malware\/","url_meta":{"origin":334,"position":1},"title":"How to Remove the YPSX_CLOUD, Agile2.vbs, YTPX Malware","author":"Ramesh","date":"August 12, 2023","format":false,"excerpt":"A new malware emerged in the 1st week of August 2023 that has infected many computers already. The origin of the malware is yet to be traced, but the malware adds six scheduled tasks, each of which runs rhc.exe, wscript.exe agile2.vbs, ytcheckts.vbs, and php.exe. Here's how to remove the infection.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/trendmicro-yptx-malware.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/trendmicro-yptx-malware.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/trendmicro-yptx-malware.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/trendmicro-yptx-malware.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1569,"url":"https:\/\/www.winhelponline.com\/blog\/schedule-windows-defender-scan-windows-10\/","url_meta":{"origin":334,"position":2},"title":"How to Schedule Microsoft Defender Scan in Windows 10\/11","author":"Ramesh","date":"February 4, 2016","format":false,"excerpt":"Microsoft Defender's command-line utility MpCmdrun.exe is used for scheduling scans or updating the signatures using the command-line. This post tells you how to set up\u00a0Microsoft Defender to scan the computer daily at a specified time using Task Scheduler and in Windows 10 or 11. Note: Windows already includes the Automatic\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"windows defender scan schedule","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-dfnder-sch-10.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-dfnder-sch-10.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-dfnder-sch-10.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":80392,"url":"https:\/\/www.winhelponline.com\/blog\/task-scheduler-service-started-stopped\/","url_meta":{"origin":334,"position":3},"title":"Task Scheduler Service on Local Computer Started and then Stopped","author":"Ramesh","date":"March 3, 2026","format":false,"excerpt":"The Task Scheduler service may fail to start, and the following error may occur when you try to start it manually using the Services MMC in Windows 10 or 11. The Task Scheduler service on Local Computer started and then stopped. Some services stop automatically if they are not in\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"task scheduler empty","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/03\/task_scheduler_launch_empty.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/03\/task_scheduler_launch_empty.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/03\/task_scheduler_launch_empty.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/03\/task_scheduler_launch_empty.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":75047,"url":"https:\/\/www.winhelponline.com\/blog\/cannot-associate-pdf-other-than-edge\/","url_meta":{"origin":334,"position":4},"title":"Cannot associate .PDF with anything other than Microsoft Edge","author":"Ramesh","date":"May 3, 2024","format":false,"excerpt":"When you use Default Apps or Open With to associate .PDF files with Adobe Reader or any other app, nothing may happen. In some cases, the association will change for a brief time, and then it will revert to Microsoft Edge as the default. Possible Cause In recent builds of\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"taskkill all instances of microsoft edge msedge.exe","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/taskkill-msedge.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/taskkill-msedge.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/taskkill-msedge.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/05\/taskkill-msedge.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":75399,"url":"https:\/\/www.winhelponline.com\/blog\/pcawallpaperappdetect-pcasvc-dll-error\/","url_meta":{"origin":334,"position":5},"title":"PcaSvc.dll &#8211; Missing entry: PcaWallpaperAppDetect in Windows 11","author":"Ramesh","date":"June 4, 2024","format":false,"excerpt":"After updating to Windows 11, version 24H2, you may see the following error message: Error in C:\\WINDOWS\\system32\\PcaSvc.dll Missing entry: PcaWallpaperAppDetect An invalid task causes this. Resolution The Windows Insider Team Blog has posted the following fix: After updating to Windows 11, version 24H2 (Build 26100.712), you may see an Pcasvc.dll\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"pcasvc.dll error 24h2","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/pcasvc-dll-error.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}