1

我正在尝试在 GPO 启动脚本中启动 BITS 服务下载。启动脚本作为本地 SYSTEM 帐户启动,根据 Microsoft 的文档https://msdn.microsoft.com/en-us/library/windows/desktop/aa363152(v=vs.85).aspx非常适合后台下载

可悲的是,当我尝试开始下载(忽略有效的源或目标)时,我收到以下错误:

Start-BitsTransfer : The operation being requested was not performed because
the user has not logged on to the network. The specified service does not
exist. (Exception from HRESULT: 0x800704DD)
At line:1 char:1
+ Start-BitsTransfer -Source localhost -Destination c:\temp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand

这只是一个测试,实际的 BITS 传输是在 GPO 启动脚本中启动的 ac# 应用程序中启动的。通过 Sysinternals PSExec 对手动创建的进程进行进一步测试会产生相同的错误。

在 whoami /all 中对安全主体的额外检查看起来不错:

User Name           SID     
=================== ========
nt authority\system S-1-5-18

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

...
CONSOLE LOGON                          Well-known group S-1-2-1
...
LOCAL                                  Well-known group S-1-2-0
BUILTIN\Administrators                 Alias            S-1-5-32-544

我检查了服务 BITS 和 SENS - 都在运行。

总结一下:

  • 如何在启动脚本中成功启动 BITS 下载作为 SYSTEM?
  • 考虑到系统帐户始终处于登录状态,“用户尚未登录网络”的错误有什么意义?“指定的服务不存在”是什么意思。- 什么服务?
4

0 回答 0