如何强制Windows预定作业以管理员身份运行

时间:2017-06-01 21:59:01

标签: scheduled-tasks windows-server-2008-r2

在“以管理员身份运行”模式下以交互方式执行批处理文件时,.bat按预期执行。

但是,使用Windows Scheduler运行时,它似乎缺少权限。

尝试以下运气:

  • “以最高权限运行” - 在预定作业属性中
  • 制作计划。由本地服务帐户,本地管理员帐户等拥有的作业
  • 运行.bat的快捷方式,设置为在快捷方式属性中的管理帐户下执行

whoami / all - 在预定的运行期间 - 报告High Mandatory Level组与.bat相关

如何在计划程序/预定作业中强制执行此操作?

=============================================== ===========

编辑@Harry Johnston

whoami / all的输出:

USER INFORMATION
----------------

User Name                SID                                           
======================== ==============================================
server1\local-admin S-1-5-21-2412003395-1771022845-1738666672-1000


GROUP INFORMATION
-----------------

Group Name                                                    Type             SID          Attributes                                                     
============================================================= ================ ============ ===============================================================
Everyone                                                      Well-known group S-1-1-0      Mandatory group, Enabled by default, Enabled group             
NT AUTHORITY\Local account and member of Administrators group Well-known group S-1-5-114    Mandatory group, Enabled by default, Enabled group             
BUILTIN\Administrators                                        Alias            S-1-5-32-544 Mandatory group, Enabled by default, Enabled group, Group owner
BUILTIN\Users                                                 Alias            S-1-5-32-545 Mandatory group, Enabled by default, Enabled group             
NT AUTHORITY\BATCH                                            Well-known group S-1-5-3      Mandatory group, Enabled by default, Enabled group             
CONSOLE LOGON                                                 Well-known group S-1-2-1      Mandatory group, Enabled by default, Enabled group             
NT AUTHORITY\Authenticated Users                              Well-known group S-1-5-11     Mandatory group, Enabled by default, Enabled group             
NT AUTHORITY\This Organization                                Well-known group S-1-5-15     Mandatory group, Enabled by default, Enabled group             
NT AUTHORITY\Local account                                    Well-known group S-1-5-113    Mandatory group, Enabled by default, Enabled group             
LOCAL                                                         Well-known group S-1-2-0      Mandatory group, Enabled by default, Enabled group             
NT AUTHORITY\NTLM Authentication                              Well-known group S-1-5-64-10  Mandatory group, Enabled by default, Enabled group             
Mandatory Label\High Mandatory Level                          Label            S-1-16-12288 Mandatory group, Enabled by default, Enabled group             

0 个答案:

没有答案