带有 ADFS 登录的任务计划程序

带有 ADFS 登录的任务计划程序

我有一台装有 ADFS 登录的 Windows 7 PC。
当我创建任务任务计划程序选择仅在用户登录时运行一切都很好。
但我选择:无论用户是否登录都运行什么都没有发生,无论我是否已登录。

我遗漏了什么?

编辑:
还有上次运行时间报告称它已经在所需时间运行了0x0代码,但实际上没有执行任何操作。

导出的不起作用的任务:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2014-11-06T16:22:01.9684545</Date>
    <Author>workgroup\username</Author>
  </RegistrationInfo>
  <Triggers>
    <TimeTrigger>
      <StartBoundary>2014-11-06T16:24:00</StartBoundary>
      <Enabled>true</Enabled>
    </TimeTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>workgroup\username</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"</Command>
    </Exec>
  </Actions>
</Task>

导出的工作任务(更改的部分):

<Principals>
    <Principal id="Author">
      <UserId>workgroup\username</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>

如果我改变,<RunLevel>LeastPrivilege</RunLevel>我会得到同样的结果。

以 Chrome 为例。

相关内容