schtasks CMD linux计划任务权限最高权限运行方法是什么

schtasks 命令创建计划任务,路径含有空格的解决办法
&&& 想通过 schtasks 命令创建计划任务,通过计划任务执行安装目录下的某个批处理文件,但是该批处理文件的绝对路径中包含空格,创建成功后执行报错&未能执行&。
&&& 网上搜了一下,基本上是这个方法解决
&&&&[注意:a. 命令行创建的计划任务有空格而不能创建的情况的解决方案:在含有看空格的参数或则路径前面加上 /&&&进行转义,这样就ok&&&&&&&&&demo:& schtasks /create&/sc minute&/mo&30 /tn &finaltest& /tr /&d:program file/smth.bat& /&'20'&'302'&&&&&------------------ 14:22]
&& 看的我是一头雾水,实际使用也是能创建成功,不能执行。
&&&最后在微软帮助支持里找到了正确的解决办法。
&&&原文如下:
&&&【 This problem occurs if the path of the scheduled task contains a space. For example, this problem occurs if you create a schedule for the following task by using Schtasks.exe:
&c:\foldername containing spaces\task.bat&
In this example, Schtasks.exe treats everything after the first space in the path as a command-line argument.
&&& When you use the Scheduled Tasks Wizard to schedule a task, the task runs as you expect. However, if you use the Schtasks.exe command-line tool to create a schedule for the same task, the task does not run at the time when you scheduled it. Additionally, when you view the task in the Scheduled Tasks dialog box, the following text appears in the Status column:
Could not start
&&& To work around this problem, enclose the path portion of the task (not including arguments or switches) between backslash (\) and quotation marks (&) character combinations, for example \&. Enclose the complete path of the task (including arguments or switches) between quotation marks as usual when you create a path or command that contains spaces. &&& For example, the following example task does not run when you schedule it:
schtasks /create /tn &my task& /tr &c:\foldername containing spaces\script.bat arguments& /sc once /sd 07/29/2003 /st 10:01
&&& However, when you enclose the path of the task between the backslash and quotation marks character combinations as in the following example, the scheduled task runs successfully:
schtasks /create /tn &my task& /tr &\&c:\foldername name containing spaces\script.bat\& arguments& /sc once /sd 07/29/2003 /st 10:01 】
&&& 解释一下: 通过【\&】将包含空格的路径包括起来, 然后外层再加上引号【&】。
&&& 例子:
&&& 【schtasks /create /tn &orientsch& /ru &System& /sc WEEKLY /d FRI /st 11:35:01 /tr& &\&c:\Lee gb\test.bat\&&】
&&最后修改于
请各位遵纪守法并注意语言文明通过计划任务SCHTASKS远程启用Remoting
- PowerShell 中文博客Schtasks 锟斤拷签_51CTO锟斤拷锟斤拷锟斤拷锟斤拷
搜索推荐文章
搜索原创文章
搜索近期文章
&&&&schtasks/create/scminute/mo5/tntestname/tr"cmd/cnltest/&&c:\temp\testlog.txt"..
&&&&在含有空格路径中,要用\""将路径包含起来,这样才能得到正确的文件路径。如下:在开机时候运行桌面上的一个program.txt的文件,命令如下:Schtasks/create/tnshowTXT/tr"\"C:\DocumentsandSettings\admin\桌面\program.txt""/sconstart/ruadmin/rp1234567这样,在开机时候就可以运..
&&&&AT命令默认是用system权限在运行的,所以不要用AT命令来做磁盘映射之类的。
可以用schtasks命令来代替AT
/zh-cn/library/cc772785(WS.10).aspx#BKMK_days..
&&&&Schtasks
安排命令和程序定期运行或在指定时间内运行。从计划表中添加和删除任务,按需要启动和停止任务,显示和更改计划任务。
schtaskscreate
创建新的计划任务。
schtasks/create/tnTaskName/trTaskRun/scschedule[/momodifier][/dday][/mmonth[,month...][/iIdleTim..
&&&&终止本地计算机上的任务
下面的命令终止由MyNotepad任务启动的Notepad实例:
schtasks/end/tn"MyNotepad"
作为响应,SchTasks.exe终止了由任务启动的Notepad实例并显示以下成功消息:
成功:计划任务"MyNotepad"已成功终止。
终止远程计算机上的任务
下面的命令终止远程计算..
schtasks/delete/tntifrepair/f
/zh-cn/library/cc772785(WS.10).aspx
schtasks/create/tn"计划名"/tr脚本路径/sconce/st运行时间/sd运行日期/ru执行用户/u运行用户/p运行用户密码/z/s运行系统例:1.批量脚本:在指定时间运行一次schtasks/cr..
Windows自带的命令非常非常之多,其中计划任务我们之前没有在Win7之家和Vista之家谈及过,今天顺便整理一下,发给大家。
当然,新手朋友们可以绕过此文,老手朋友们可以根据这个定制自己的计划任务。不过,这个命令一般会被一些软件使用来执行初始化..
&&&&Schtasks.exe计划任务的几个实例小结
前段时间负责编写荣新v4版本WindowsServer2008R2升级课程的PPT,计划任务管理时提到了Schtasks,这里总结几个应用,方便大家查询:
作为服务器的系统管理员可以使用&Schtasks.exe&命令行工具,这种执行方式与使用图形化界面相同的..
&&&&用schtasks.exeSCHTASKS/parameter[arguments]描述:允许管理员创建、删除、查询、更改、运行和中止本地或远程系统上的计划任务。替代AT.exe。参数列表:/Create创建新计划任务。/Delete删除计划任务。/Query显示所有计划任务。/Change更改计划任务属性。/Run立即运行计划任务。/End..
  你有可能会遇到这样的情况,在OE(或其他E-Mail客户端软件)中既不能点击任何链接,而且它们也无法带你到任何地方,或者每次在OE中你使用新窗口来打开链接,但IE却返回一个空白页面。这个问题解决起来非常简单,只要重新注册URL监视器即可。其实当其他软件出现类似问题..
Copyright&
版权所有 未经许可 请勿转载schtasks 错误: 无法加载列资源。的解决方法
schtasks.exe是Windows计划任务命令行程序,可以用于创建、查询、删除计划任务,让电脑自动在指定的时机运行任务程序或者代码。Windows中还有一个控制台程序taskschd.msc能够起到同样的作用,区别在于taskschd.msc是图形界面程序。
不带参数运行schtasks等效于schtasks /query,如果出现“schtasks 错误: 无法加载列资源。”的错误提示,可以使用chcp命令将编码暂时设置为英文。
chcp 437复制代码运行完schtasks以后再使用chcp命令将编码设置回中文GBK(936)chcp 936复制代码需要注意的是,编码设置为437以后,所有非ASCII字符都将显示为问号(?),无法正常查看。
width:100%">
E-mail: OHCC@</&#xe621; 上传我的文档
&#xe602; 下载
&#xe60c; 收藏
该文档贡献者很忙,什么也没留下。
&#xe602; 下载此文档
正在努力加载中...
schtasks 命令详解
下载积分:900
内容提示:schtasks 命令详解
文档格式:TXT|
浏览次数:39|
上传日期: 06:55:04|
文档星级:&#xe60b;&#xe60b;&#xe60b;&#xe60b;&#xe60b;
全文阅读已结束,如果下载本文需要使用
&#xe71b; 900 积分
&#xe602;下载此文档
该用户还上传了这些文档
schtasks 命令详解
官方公共微信

我要回帖

更多关于 计划任务运行结果0x2 的文章

 

随机推荐