{"id":112451,"date":"2026-10-03T18:17:18","date_gmt":"2026-10-03T10:17:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/112451.html"},"modified":"2026-10-03T18:17:18","modified_gmt":"2026-10-03T10:17:18","slug":"%e7%94%a8-schtasks-%e7%bb%99%e7%94%b5%e8%84%91%e8%ae%be%e6%af%8f%e5%a4%a9%e5%ae%9a%e6%97%b6%e9%87%8d%e5%90%af%ef%bc%9a%e4%b8%80%e4%b8%aa-bat-%e5%8f%8c%e5%87%bb%e6%90%9e%e5%ae%9a%e5%85%a8%e7%a7%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/112451.html","title":{"rendered":"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4"},"content":{"rendered":"<\/p>\n<p>\u6458\u8981&#xff1a;\u79d1\u5ba4\u7535\u8111\u8001\u4e0d\u91cd\u542f&#xff0c;\u8f6f\u4ef6\u66f4\u65b0\u4e0d\u751f\u6548\u3001\u5171\u4eab\u6253\u5370\u673a\u7f62\u5de5\u3001\u8d8a\u7528\u8d8a\u5361\u3002\u4e00\u53f0\u53f0\u53bb\u8bbe\u592a\u9ebb\u70e6&#xff0c;\u6211\u7528 Windows \u81ea\u5e26\u7684\u8ba1\u5212\u4efb\u52a1\u5199\u4e86\u4e2a\u6279\u5904\u7406\u811a\u672c&#xff1a;\u5185\u7f51\u7fa4\u53d1\u51fa\u53bb&#xff0c;\u8ba9\u6bcf\u53f0\u7535\u8111\u53cc\u51fb\u8fd0\u884c\u4e00\u6b21&#xff0c;\u5c31\u8bbe\u597d\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f&#xff0c;\u91cd\u542f\u524d\u8fd8\u7559 1~3 \u5206\u949f\u5012\u8ba1\u65f6\u63d0\u9192\u4fdd\u5b58\u8d44\u6599\u3002\u9644\u5b8c\u6574\u811a\u672c\u4e0e\u8e29\u5751\u8bf4\u660e\u3002<\/p>\n<p>\u4e0a\u7bc7\u7ed9\u5404\u4f4d\u4eb2\u7231\u7684\u8bfb\u8005\u670b\u53cb\u5206\u4eab\u4e86&#xff0c;\u5728\u4e0d\u80fd\u91cd\u542f\u7684\u60c5\u51b5\u4e0b\u5904\u7406\u670d\u52a1\u5668\u4ee5\u53ca\u7ec8\u7aef\u7535\u8111\u7684\u4e00\u4e9b\u95ee\u9898&#xff0c;\u8fd9\u7bc7\u5c31\u7ed9\u5404\u4f4d\u8bfb\u8005\u670b\u53cb\u5206\u4eab\u4e00\u4e0b&#xff0c;\u4ece\u6765\u4e0d\u60f3\u91cd\u542f\u7684\u7535\u8111&#xff0c;\u6211\u600e\u4e48\u8ba9\u4ed6\u5fc5\u987b\u91cd\u542f&#xff01;<\/p>\n<p>\u4e0d\u7ba1\u751f\u6d3b\u8fd8\u662f\u5de5\u4f5c\u4e2d&#xff0c;\u6211\u4eec\u5e38\u5e38\u4f1a\u9047\u5230\u4e00\u4e9b\u5f88\u5947\u5999\u7684\u4e8b\u60c5&#xff0c;\u5c31\u6bd4\u5982\u73b0\u5728\u54b1\u4eec\u8981\u8bf4\u7684&#xff0c;\u4e00\u822c\u90fd\u662f\u7cfb\u7edf\u7ec8\u7aef\u8fd0\u884c\u7a33\u5b9a&#xff0c;\u4e0d\u62a5\u9519&#xff0c;\u4e0d\u91cd\u542f&#xff0c;\u4f46\u6709\u65f6\u5019\u592a\u7a33\u5b9a\u4e86\u4e5f\u662f\u95ee\u9898\u3002<\/p>\n<p>\u533b\u9662\u8f6f\u4ef6\u4f1a\u6839\u636e\u76f8\u5173\u5355\u4f4d\u8981\u6c42&#xff0c;\u7ecf\u5e38\u662f\u4fee\u6539\u6dfb\u52a0\u6216\u662f\u51cf\u5c11\u67d0\u4e9b\u529f\u80fd&#xff0c;\u7a0b\u5e8f\u4fee\u6539\u597d&#xff0c;\u901a\u5e38\u90fd\u662f\u4e0a\u7ebf\u5230\u670d\u52a1\u5668\u4e0a\u7684&#xff0c;\u672c\u5730\u7684\u7ec8\u7aef\u662f\u9700\u8981\u5173\u95ed\u73b0\u5728\u6b63\u5728\u4f7f\u7528\u7684\u8f6f\u4ef6&#xff0c;\u91cd\u65b0\u767b\u5f55\u65f6&#xff0c;\u8f6f\u4ef6\u68c0\u67e5\u5230\u670d\u52a1\u5668\u7248\u672c\u6709\u66f4\u65b0&#xff0c;\u624d\u4f1a\u4e0b\u8f7d\u66f4\u65b0\u3002\u533b\u9662\u8fd0\u7ef4\u7684\u670b\u53cb\u5e94\u8be5\u90fd\u660e\u767d&#xff0c;\u79d1\u5ba4\u5927\u90e8\u5206\u7535\u8111\u90fd\u6bd4\u8f83\u8001\u65e7&#xff0c;\u91cd\u542f\u4e00\u6b21\u9700\u8981\u5f88\u957f\u65f6\u95f4&#xff0c;\u6240\u4ee5\u4e00\u822c\u6ca1\u6709\u54ea\u4f4d\u533b\u751f\u613f\u610f\u91cd\u542f&#xff0c;\u8fd9\u5c31\u5bfc\u81f4\u4e86&#xff0c;\u5df2\u7ecf\u6dfb\u52a0\u7684\u529f\u80fd&#xff0c;\u7ec8\u7aef\u7535\u8111\u8f6f\u4ef6\u754c\u9762\u4e0a\u8fd8\u662f\u6ca1\u6709&#xff0c;\u6216\u662f\u5df2\u7ecf\u5220\u9664\u7684\u529f\u80fd&#xff0c;\u7ec8\u7aef\u7535\u8111\u8f6f\u4ef6\u754c\u9762\u4e0a\u8fd8\u6709&#xff0c;\u5c31\u4f1a\u51fa\u73b0&#xff0c;\u8f6f\u4ef6\u5728\u4f7f\u7528\u4e2d\u51fa\u73b0\u5404\u79cd\u62a5\u9519&#xff0c;\u8fd0\u7ef4\u4eba\u5458\u53bb\u4e00\u770b&#xff0c;\u5443&#xff0c;\u5c31\u662f\u628a\u8f6f\u4ef6\u9000\u4e86&#xff0c;\u91cd\u65b0\u6253\u5f00\u8f6f\u4ef6&#xff0c;\u81ea\u52a8\u66f4\u65b0\u540e&#xff0c;\u518d\u8fdb\u5230\u8f6f\u4ef6\u91cc\u9762\u64cd\u4f5c&#xff0c;\u6240\u6709\u529f\u80fd\u5c31\u90fd\u6b63\u5e38\u4e86&#xff0c;\u62a5\u9519\u4e5f\u5c31\u4e0d\u518d\u51fa\u73b0&#xff1b;<\/p>\n<p>\u53e6\u4e00\u79cd\u60c5\u51b5\u5c31\u662f\u5171\u4eab\u6253\u5370\u673a&#xff0c;\u533b\u9662\u5927\u90e8\u5206\u4f7f\u7528\u5171\u4eab\u6253\u5370\u673a\u7684\u8fd8\u662f\u6bd4\u8f83\u591a&#xff0c;\u4e0d\u7ba1\u662f\u533b\u751f\u529e\u516c\u5ba4\u8fd8\u662f\u4f4f\u9662\u75c5\u533a\u62a4\u58eb\u7ad9\u7b49&#xff0c;\u5e38\u89c1\u7684\u5c31\u662f\u81f3\u5c11\u4e24\u53f0\u7ec8\u7aef\u4f7f\u7528\u4e00\u53f0\u6253\u5370\u673a\u3002\u7ecf\u5e38\u9047\u5230\u6253\u5370\u673a\u6253\u5370\u4e0d\u4e86&#xff0c;\u5927\u90e8\u5206\u90fd\u662f\u56e0\u4e3awin\u7cfb\u7edf\u81ea\u8eab\u95ee\u9898&#xff0c;\u6253\u5370\u670d\u52a1\u51fa\u95ee\u9898\u4e86&#xff0c;\u91cd\u542f\u670d\u52a1\u4e00\u822c\u5c31\u80fd\u6b63\u5e38\u4f7f\u7528\u3002\u4f46\u533b\u751f\u79d1\u5ba4\u6216\u662f\u62a4\u58eb\u7ad9\u90fd\u4e0d\u4f1a\u5f04&#xff0c;\u6700\u7b80\u5355\u7684\u529e\u6cd5\u5c31\u662f\u628a\u4e24\u53f0\u7535\u8111\u90fd\u91cd\u65b0\u542f\u52a8\u4e00\u4e0b&#xff0c;\u6253\u5370\u673a\u5c31\u53c8\u80fd\u6062\u590d\u6b63\u5e38&#xff0c;\u4e0d\u7528\u8fd0\u7ef4\u4eba\u5458\u4e13\u95e8\u518d\u8dd1\u4e00\u8d9f&#xff1b;<\/p>\n<p>\u8fd8\u6709\u5c31\u662f\u7535\u8111\u957f\u65f6\u95f4\u4e0d\u91cd\u542f&#xff0c;win\u7cfb\u7edf\u81ea\u8eab\u4ea7\u751f\u7684\u4e34\u65f6\u6587\u4ef6\u3001\u7f13\u5b58\u6587\u4ef6\u7b49\u90fd\u4f1a\u5bfc\u81f4\u7ec8\u7aef\u7535\u8111\u8d8a\u7528\u8d8a\u5361&#xff0c;\u91cd\u65b0\u91cd\u542f\u91ca\u653e\u4e00\u4e0b&#xff0c;\u5c31\u80fd\u597d\u4e00\u4e9b&#xff1b;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003101717-6ac0d62d033fc.png\" \/><\/p>\n<p>\u4f46&#xff0c;\u6709\u4e9b\u79d1\u5ba4\u5c31\u662f\u4e0d\u613f\u610f\u91cd\u65b0\u542f\u52a8\u7535\u8111&#xff0c;\u6ca1\u529e\u6cd5&#xff0c;\u5c31\u5f97\u4e0a\u70b9\u5f3a\u5ea6&#xff01;<\/p>\n<p>\u4e4b\u524d\u79d1\u4e3b\u4efb\u95ee\u6211\u9700\u8981\u5b89\u88c5\u4ec0\u4e48\u5b9a\u65f6\u8f6f\u4ef6&#xff0c;\u8981\u6c42\u7535\u8111\u6307\u5b9a\u65f6\u95f4\u5fc5\u987b\u91cd\u542f\u4e00\u6b21\u3002\u6211\u4e00\u542c&#xff0c;\u54ea\u9700\u8981\u8fd9\u4e48\u9ebb\u70e6&#xff0c;win\u7cfb\u7edf\u4e0d\u662f\u6709\u73b0\u6210\u7684\u529f\u80fd\u5417&#xff1f;\u4f7f\u7528\u7cfb\u7edf\u81ea\u5e26\u7684\u8ba1\u5212\u4efb\u52a1&#xff0c;\u52a0\u4e00\u6761\u91cd\u542f\u547d\u4ee4&#xff0c;\u53c2\u6570\u91cc\u52a0\u4e0a\u5ef6\u8fdf1\u52303\u5206\u949f&#xff0c;\u65f6\u95f4\u4e00\u5230&#xff0c;\u5c31\u4f1a\u81ea\u52a8\u91cd\u542f&#xff0c;\u7559\u51fa\u7684\u4e00\u5230\u4e09\u5206\u949f&#xff0c;\u8db3\u591f\u533b\u751f\u4fdd\u5b58\u672a\u4fdd\u5b58\u7684\u75c5\u5386\u3001\u6587\u4e66\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u4f46\u4e00\u53f0\u4e00\u53f0\u7535\u8111\u53bb\u8bbe\u7f6e&#xff0c;\u4e5f\u662f\u6bd4\u8f83\u9ebb\u70e6\u7684\u3002\u540e\u6765\u6211\u5c31\u7ed9\u5199\u4e86\u4e00\u4e2a\u811a\u672c&#xff0c;\u4f7f\u7528\u5185\u7f51\u901a\u7fa4\u53d1\u7ed9\u6240\u6709\u7535\u8111&#xff0c;\u8ba9\u4f7f\u7528\u7535\u8111\u7684\u5404\u4f4d\u540c\u4e8b&#xff0c;\u53cc\u51fb\u8fd0\u884c\u4e00\u4e0b&#xff0c;\u4e00\u6b21\u5c31\u641e\u5b9a\u6240\u6709\u7535\u8111\u7684\u91cd\u542f\u95ee\u9898\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003101717-6ac0d62d70590.png\" \/><\/p>\n<p>\u662f\u4e0d\u662f\u611f\u89c9\u5f88\u7b80\u5355&#xff1f;\u662f\u7684&#xff0c;\u8fd0\u7ef4\u5de5\u4f5c\u4e2d\u9664\u4e86\u8ba9\u4eba\u6293\u72c2\u7684\u95ee\u9898\u5916&#xff0c;\u7ecf\u5e38\u9047\u5230\u7684\u5c31\u662f\u8fd9\u4e48\u7b80\u5355\u7684\u95ee\u9898&#xff0c;\u4f46\u6ca1\u6709\u8fd9\u4e2a\u601d\u8def&#xff0c;\u5c31\u4f1a\u82b1\u4e0d\u5c11\u529f\u592b\u2026\u2026<\/p>\n<\/p>\n<p>\u4e0b\u9762\u628a\u5b8c\u6574\u811a\u672c\u76f4\u63a5\u8d34\u51fa\u6765&#xff0c;\u590d\u5236\u5c31\u80fd\u7528\u2014\u2014\u53cc\u51fb\u8fd0\u884c\u4e00\u6b21&#xff0c;\u8fd9\u53f0\u7535\u8111\u4ee5\u540e\u6bcf\u5929\u5230\u70b9\u81ea\u52a8\u91cd\u542f&#xff0c;\u91cd\u542f\u524d\u4f1a\u7559 1~3 \u5206\u949f\u5012\u8ba1\u65f6\u63d0\u9192\u4fdd\u5b58\u8d44\u6599&#xff1a;<\/p>\n<p>&#064;echo off<br \/>\nchcp 936 &gt;nul<br \/>\ntitle \u4e00\u952e\u8bbe\u7f6e &#8211; \u6bcf\u5929\u5b9a\u65f6\u91cd\u542f<\/p>\n<p>:: &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n::   \u6bcf\u5929\u5b9a\u65f6\u91cd\u542f \u00b7 \u4e00\u952e\u8bbe\u7f6e<br \/>\n::<br \/>\n::   \u53cc\u51fb\u8fd0\u884c\u4e00\u6b21&#xff0c;\u8fd9\u53f0\u7535\u8111\u4ee5\u540e\u5c31\u4f1a\u5728\u6307\u5b9a\u65f6\u95f4\u81ea\u52a8\u91cd\u542f\u3002<br \/>\n::   \u91cd\u542f\u524d\u4f1a\u7559\u51fa\u4e00\u6bb5\u65f6\u95f4&#xff0c;\u5c4f\u5e55\u53f3\u4e0b\u89d2\u4f1a\u6709\u5012\u8ba1\u65f6\u63d0\u9192&#xff0c;<br \/>\n::   \u591f\u628a\u6b63\u5728\u5904\u7406\u7684\u8d44\u6599\u4fdd\u5b58\u4e00\u4e0b\u3002<br \/>\n::<br \/>\n::   \u8981\u6539\u65f6\u95f4&#xff0c;\u5c31\u6539\u4e0b\u9762\u8fd9\u4e24\u884c&#xff08;\u65f6\u95f4\u662f 24 \u5c0f\u65f6\u5236&#xff09;&#xff1a;<br \/>\nset REBOOT_TIME&#061;23:00<br \/>\nset DELAY_SECONDS&#061;180<br \/>\n::<br \/>\n::   \u8981\u53d6\u6d88&#xff0c;\u5728\u300c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u300d\u91cc\u628a\u300c\u6bcf\u65e5\u5b9a\u65f6\u91cd\u542f\u300d\u8fd9\u4e2a\u4efb\u52a1\u5220\u6389\u5c31\u884c\u3002<br \/>\n:: &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<\/p>\n<p>set TASK_NAME&#061;\u6bcf\u65e5\u5b9a\u65f6\u91cd\u542f<br \/>\nset REBOOT_CMD&#061;shutdown \/r \/t %DELAY_SECONDS%<\/p>\n<p>:: \u5efa\u8ba1\u5212\u4efb\u52a1\u8981\u7ba1\u7406\u5458\u6743\u9650&#xff0c;\u6ca1\u6709\u5c31\u5148\u7533\u8bf7<br \/>\nnet session &gt;nul 2&gt;&amp;1<br \/>\nif %errorlevel% NEQ 0 goto ELEVATE<\/p>\n<p>cls<br \/>\necho.<br \/>\necho   &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho      \u6bcf\u5929\u5b9a\u65f6\u91cd\u542f \u00b7 \u4e00\u952e\u8bbe\u7f6e<br \/>\necho   &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho.<br \/>\necho      \u4efb\u52a1\u540d\u79f0&#xff1a;%TASK_NAME%<br \/>\necho      \u91cd\u542f\u65f6\u95f4&#xff1a;\u6bcf\u5929 %REBOOT_TIME%<br \/>\necho      \u91cd\u542f\u524d\u7559&#xff1a;%DELAY_SECONDS% \u79d2&#xff08;\u591f\u4fdd\u5b58\u8d44\u6599&#xff09;<br \/>\necho.<br \/>\necho      \u6b63\u5728\u8bbe\u7f6e&#xff0c;\u8bf7\u7a0d\u7b49\u2026\u2026<br \/>\necho.<\/p>\n<p>:: \u5efa\u4e00\u4e2a\u6bcf\u5929\u5230\u70b9\u6267\u884c\u7684\u8ba1\u5212\u4efb\u52a1<br \/>\nschtasks \/create \/tn &#034;%TASK_NAME%&#034; ^<br \/>\n  \/tr &#034;%REBOOT_CMD%&#034; ^<br \/>\n  \/sc daily \/st %REBOOT_TIME% ^<br \/>\n  \/rl HIGHEST \/f &gt;nul 2&gt;&amp;1<\/p>\n<p>if errorlevel 1 goto FAILED<br \/>\necho      [\u6210\u529f] \u5df2\u7ecf\u8bbe\u7f6e\u597d\u4e86&#xff01;<br \/>\ngoto DONE<\/p>\n<p>:FAILED<br \/>\necho      [\u5931\u8d25] \u6ca1\u80fd\u5efa\u6210\u529f\u3002<br \/>\necho      \u8bf7\u53f3\u952e\u8fd9\u4e2a\u6587\u4ef6&#xff0c;\u9009\u300c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u300d\u518d\u8bd5\u4e00\u6b21\u3002<\/p>\n<p>:DONE<br \/>\necho.<br \/>\necho   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\necho      \u4ee5\u540e\u6bcf\u5929 %REBOOT_TIME%&#xff0c;\u8fd9\u53f0\u7535\u8111\u4f1a\u81ea\u52a8\u91cd\u542f&#xff1b;<br \/>\necho      \u91cd\u542f\u524d %DELAY_SECONDS% \u79d2&#xff0c;\u5c4f\u5e55\u53f3\u4e0b\u89d2\u4f1a\u6709\u5012\u8ba1\u65f6\u63d0\u9192&#xff0c;<br \/>\necho      \u8bf7\u628a\u6b63\u5728\u5904\u7406\u7684\u8d44\u6599\u4fdd\u5b58\u4e00\u4e0b\u3002<br \/>\necho   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\necho.<br \/>\necho      \u6309\u4efb\u610f\u952e\u5173\u95ed\u672c\u7a97\u53e3\u2026\u2026<br \/>\npause &gt;nul<br \/>\nexit \/b<\/p>\n<p>:ELEVATE<br \/>\necho.<br \/>\necho   \u6b63\u5728\u7533\u8bf7\u7ba1\u7406\u5458\u6743\u9650&#xff0c;\u8bf7\u5728\u5f39\u7a97\u91cc\u70b9\u300c\u662f\u300d\u2026\u2026<br \/>\necho.<br \/>\npowershell -NoProfile -Command &#034;Start-Process -FilePath &#039;%~f0&#039; -Verb RunAs&#034;<br \/>\nexit \/b<\/p>\n<p>\u8e29\u5751\u63d0\u9192&#xff1a;\u7b2c\u4e00\u6b21\u53cc\u51fb\u5982\u679c\u63d0\u793a\u5931\u8d25&#xff0c;\u53f3\u952e\u8fd9\u4e2a\u6587\u4ef6\u9009\u300c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u300d\u518d\u8bd5\u2014\u2014\u5efa\u8ba1\u5212\u4efb\u52a1\u5fc5\u987b\u7ba1\u7406\u5458\u6743\u9650&#xff0c;\u811a\u672c\u4f1a\u81ea\u52a8\u7533\u8bf7\u63d0\u6743\u3002<\/p>\n<p>\u8981\u6539\u91cd\u542f\u65f6\u95f4&#xff0c;\u5c31\u6539\u811a\u672c\u91cc set REBOOT_TIME&#061;23:00 \u90a3\u4e00\u884c&#xff08;24 \u5c0f\u65f6\u5236&#xff09;\u5373\u53ef\u3002<\/p>\n<p>\u4f5c\u8005&#xff1a;\u8001\u5218\u8bf4\u533b\u4fe1&#xff0c;\u533b\u9662\u4fe1\u606f\u79d1\u8fd0\u7ef4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981&#xff1a;\u79d1\u5ba4\u7535\u8111\u8001\u4e0d\u91cd\u542f&#xff0c;\u8f6f\u4ef6\u66f4\u65b0\u4e0d\u751f\u6548\u3001\u5171\u4eab\u6253\u5370\u673a\u7f62\u5de5\u3001\u8d8a\u7528\u8d8a\u5361\u3002\u4e00\u53f0\u53f0\u53bb\u8bbe\u592a\u9ebb\u70e6&#xff0c;\u6211\u7528 Windows \u81ea\u5e26\u7684\u8ba1\u5212\u4efb\u52a1\u5199\u4e86\u4e2a\u6279\u5904\u7406\u811a\u672c&#xff1a;\u5185\u7f51\u7fa4\u53d1\u51fa\u53bb&#xff0c;\u8ba9\u6bcf\u53f0\u7535\u8111\u53cc\u51fb\u8fd0\u884c\u4e00\u6b21&#xff0c;\u5c31\u8bbe\u597d\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f&#xff0c;\u91cd\u542f\u524d\u8fd8\u7559 1~3 \u5206\u949f\u5012\u8ba1\u65f6\u63d0\u9192\u4fdd\u5b58\u8d44\u6599\u3002\u9644\u5b8c\u6574\u811a\u672c\u4e0e\u8e29\u5751\u8bf4\u660e\u3002\u4e0a\u7bc7\u7ed9\u5404\u4f4d\u4eb2\u7231\u7684\u8bfb\u8005\u670b\u53cb\u5206\u4eab\u4e86&#xff0c;\u5728\u4e0d\u80fd\u91cd\u542f\u7684\u60c5\u51b5\u4e0b\u5904\u7406\u670d\u52a1\u5668\u4ee5\u53ca\u7ec8\u7aef\u7535\u8111\u7684\u4e00\u4e9b\u95ee\u9898&#xff0c;\u8fd9\u7bc7\u5c31\u7ed9<\/p>\n","protected":false},"author":2,"featured_media":112449,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[149,43,3653,395,44],"topic":[],"class_list":["post-112451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-windows","tag-43","tag-3653","tag-395","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/112451.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6458\u8981&#xff1a;\u79d1\u5ba4\u7535\u8111\u8001\u4e0d\u91cd\u542f&#xff0c;\u8f6f\u4ef6\u66f4\u65b0\u4e0d\u751f\u6548\u3001\u5171\u4eab\u6253\u5370\u673a\u7f62\u5de5\u3001\u8d8a\u7528\u8d8a\u5361\u3002\u4e00\u53f0\u53f0\u53bb\u8bbe\u592a\u9ebb\u70e6&#xff0c;\u6211\u7528 Windows \u81ea\u5e26\u7684\u8ba1\u5212\u4efb\u52a1\u5199\u4e86\u4e2a\u6279\u5904\u7406\u811a\u672c&#xff1a;\u5185\u7f51\u7fa4\u53d1\u51fa\u53bb&#xff0c;\u8ba9\u6bcf\u53f0\u7535\u8111\u53cc\u51fb\u8fd0\u884c\u4e00\u6b21&#xff0c;\u5c31\u8bbe\u597d\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f&#xff0c;\u91cd\u542f\u524d\u8fd8\u7559 1~3 \u5206\u949f\u5012\u8ba1\u65f6\u63d0\u9192\u4fdd\u5b58\u8d44\u6599\u3002\u9644\u5b8c\u6574\u811a\u672c\u4e0e\u8e29\u5751\u8bf4\u660e\u3002\u4e0a\u7bc7\u7ed9\u5404\u4f4d\u4eb2\u7231\u7684\u8bfb\u8005\u670b\u53cb\u5206\u4eab\u4e86&#xff0c;\u5728\u4e0d\u80fd\u91cd\u542f\u7684\u60c5\u51b5\u4e0b\u5904\u7406\u670d\u52a1\u5668\u4ee5\u53ca\u7ec8\u7aef\u7535\u8111\u7684\u4e00\u4e9b\u95ee\u9898&#xff0c;\u8fd9\u7bc7\u5c31\u7ed9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/112451.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-03T10:17:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003101717-6ac0d62d033fc.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112451.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/112451.html\",\"name\":\"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-03T10:17:18+00:00\",\"dateModified\":\"2026-10-03T10:17:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/112451.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/112451.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112451.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/112451.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6458\u8981&#xff1a;\u79d1\u5ba4\u7535\u8111\u8001\u4e0d\u91cd\u542f&#xff0c;\u8f6f\u4ef6\u66f4\u65b0\u4e0d\u751f\u6548\u3001\u5171\u4eab\u6253\u5370\u673a\u7f62\u5de5\u3001\u8d8a\u7528\u8d8a\u5361\u3002\u4e00\u53f0\u53f0\u53bb\u8bbe\u592a\u9ebb\u70e6&#xff0c;\u6211\u7528 Windows \u81ea\u5e26\u7684\u8ba1\u5212\u4efb\u52a1\u5199\u4e86\u4e2a\u6279\u5904\u7406\u811a\u672c&#xff1a;\u5185\u7f51\u7fa4\u53d1\u51fa\u53bb&#xff0c;\u8ba9\u6bcf\u53f0\u7535\u8111\u53cc\u51fb\u8fd0\u884c\u4e00\u6b21&#xff0c;\u5c31\u8bbe\u597d\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f&#xff0c;\u91cd\u542f\u524d\u8fd8\u7559 1~3 \u5206\u949f\u5012\u8ba1\u65f6\u63d0\u9192\u4fdd\u5b58\u8d44\u6599\u3002\u9644\u5b8c\u6574\u811a\u672c\u4e0e\u8e29\u5751\u8bf4\u660e\u3002\u4e0a\u7bc7\u7ed9\u5404\u4f4d\u4eb2\u7231\u7684\u8bfb\u8005\u670b\u53cb\u5206\u4eab\u4e86&#xff0c;\u5728\u4e0d\u80fd\u91cd\u542f\u7684\u60c5\u51b5\u4e0b\u5904\u7406\u670d\u52a1\u5668\u4ee5\u53ca\u7ec8\u7aef\u7535\u8111\u7684\u4e00\u4e9b\u95ee\u9898&#xff0c;\u8fd9\u7bc7\u5c31\u7ed9","og_url":"https:\/\/www.wsisp.com\/helps\/112451.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-03T10:17:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003101717-6ac0d62d033fc.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/112451.html","url":"https:\/\/www.wsisp.com\/helps\/112451.html","name":"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-03T10:17:18+00:00","dateModified":"2026-10-03T10:17:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/112451.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/112451.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/112451.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7528 schtasks \u7ed9\u7535\u8111\u8bbe\u6bcf\u5929\u5b9a\u65f6\u91cd\u542f\uff1a\u4e00\u4e2a bat \u53cc\u51fb\u641e\u5b9a\u5168\u79d1\u5ba4"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=112451"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/112449"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=112451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=112451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=112451"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=112451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}