{"id":5,"date":"2008-08-12T00:25:50","date_gmt":"2008-08-12T00:25:50","guid":{"rendered":"http:\/\/192.168.50.22\/index.php\/2008\/08\/12\/windows-scheduled-scan-making-script\/"},"modified":"2026-03-17T21:24:15","modified_gmt":"2026-03-18T01:24:15","slug":"windows-scheduled-scan-making-script","status":"publish","type":"post","link":"https:\/\/smegnl.medina.oh.us\/?p=5","title":{"rendered":"Windows Scheduled Scan Making Script"},"content":{"rendered":"<p><span style=\"font-size: medium;\">This  will install a Windows Schedule job on a Windows machine with out any  user intervention. It runs as a system task, so no user password is  needed.<\/span><\/p>\n<p><span style=\"font-size: medium;\"><br \/>\n<span style=\"font-family:  book antiqua,palatino;\">REM Removes any extra or unwanted scheduled  tasks<br \/>\nc:<br \/>\ncd \\<br \/>\ncd windows\\tasks<br \/>\ndel *.job<\/span><\/span><\/p>\n<p>REM Removed  Crypo files from local disk. It gave us not authorized errors on some  machines when trying to start the scheduled job<br \/>\nc:<br \/>\ncd \\<br \/>\nrmdir  &#8220;C:\\Documents and Settings\\All Users\\Application  Data\\Microsoft\\Crypto\\RSA\\S-1-5-18&#8221; \/s \/q<\/p>\n<p>REM Stops and stops  task scheduler<br \/>\nnet stop &#8220;Task Scheduler&#8221;<br \/>\nnet start &#8220;Task  Scheduler&#8221;<\/p>\n<p>REM Creates sheduled scan, in this exaple for ClamWin&nbsp;  AntiVirus. \/tn is just the name of hte job; \/tr is the program to run;  \/ru &#8220;&#8221; makes it run as a system job<br \/>\n<span style=\"font-size: medium;\"><span style=\"font-family:  book antiqua,palatino;\">schtasks \/create \/tn &#8220;CalmWin AntiVirus Scanner&#8221;  \/tr clamscan.bat \/sc DAILY \/mo 1 \/st 17:15:00 \/sd &#8220;09\/28\/2009&#8221; \/ed  &#8220;01\/01\/2050&#8221; \/ru &#8220;&#8221;<\/span><\/span><\/p>\n<p>PAUSE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will install a Windows Schedule job on a Windows machine with out any user intervention. It runs as a system task, so no user password is needed. REM Removes any extra or unwanted scheduled tasks c: cd \\ cd windows\\tasks del *.job REM Removed Crypo files from local disk. It gave us not authorized [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-figured-it-out"],"_links":{"self":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":0,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/media\/3014"}],"wp:attachment":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}