且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将 Windows 计划任务设置为在后台运行?

更新时间:2023-01-31 22:58:09

As 注意到 Mattias Nordqvist 在下面的评论中,您也可以选择单选按钮选项 无论用户是否登录都运行".保存任务时,系统会提示您一次输入用户密码.bambams 注意到这不会向进程授予系统权限,而且似乎还隐藏了命令窗口.

As noted by Mattias Nordqvist in the comments below, you can also select the radio button option "Run whether user is logged on or not". When saving the task, you will be prompted once for the user password. bambams noted that this wouldn't grant System permissions to the process, and also seems to hide the command window.

这不是一个明显的解决方案,但是要让一个计划任务在后台运行,将运行该任务的用户更改为SYSTEM",然后什么都不会出现你的屏幕.

It's not an obvious solution, but to make a Scheduled Task run in the background, change the User running the task to "SYSTEM", and nothing will appear on your screen.