我正在尝试在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启动脚本中启动的c#应用程序中启动的。通过Sysinternals PSExec用手动创建的过程进行的进一步测试会产生相同的错误。
在whoami中对安全性主体进行的其他检查/全部看起来不错:
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服务-全部正在运行。
总结: