固件更新从 SYSTEM 会话失败,但在登录会话 运行 时有效?

Firmware update fails from SYSTEM session but works when ran from logged on session?

我正在使用 Lenovo 固件更新工具: https://pcsupport.lenovo.com/ca/fr/downloads/ds504448

目标是更新扩展坞的固件。

完全相同的脚本是 运行(只是 ThinkPad_Hybrid_Dock_TVSU_FW.exe /all /silent):

1-在 SYSTEM 会话中(通过 sccm 或计划任务)总是失败:

 Update fail.

 Failed to update the Device Firmware.
 Restart this program and try again.

 RC:60931

2-在登录用户会话中,运行以完全相同的方式运行完全相同的脚本,它始终有效:

 Update success.

 Success to update the Device Firmware.


 RC:0

知道这是否是设计使然吗?什么可以阻止它在 SYSTEM 帐户中 运行ning?这破坏了使用 /silent 开关的目的。目标是在安全的情况下通过 SCCM 连夜部署固件更新。必须登录并 运行 该命令会破坏所有自动化可能性。我们有数百个扩展坞要更新...现在,我们必须通过登录并 运行 运行脚本来手动完成...这是一场噩梦。

此外,如果我在登录会话中测试 运行ning 命令,比如说 userX,它可以工作。

如果我 运行 具有完全相同的 userX 凭据的完全相同的脚本但是来自计划任务或作为 Windows 服务,它不起作用!

工具中似乎有一些东西阻止它 运行 除了在已登录会话中之外的任何地方....?

在 运行ning PROCMON 之后,一些事情正在发生 运行ge。 运行 在用户会话中成功记录了 61 346 个事件。软件创建和查询结果文件共有14个条目:

https://i.imgur.com/BGcQdTe.png

然而,在失败的尝试中 运行使用与 SYSTEM 相同的命令,应用程序似乎试图创建该结果 txt 文件的事件数量达到惊人的 1 315 989(日志的 92%),并且失败(CreateFile 操作),我怀疑最终它在尝试后超时,哦超过一百万次。

你知道为什么会这样吗? SYSTEM 帐户对该文件夹的安全权限具有完全控制权。

根据设计,该工具不支持在记录的会话之外进行静默安装,因此 public 不要阻塞他们的设备...显然我们可以联系我们的销售代表并获得商业版本允许静默更新的工具。

在此处查看此管理员的回复:

https://forums.lenovo.com/t5/ThinkPad-T400-T500-and-newer-T/Firmware-update-all-silent-always-FAILS-when-ran-from-SYSTEM/td-p/4503933**

因此,如果您遇到同样的情况,您需要联系您的 lenovo 代表并获得 public 无法使用的工具的真正 "silent" 版本。

粘贴答案以防 link 死机:

Re: Firmware update (/all /silent) always FAILS when ran from SYSTEM account but works if ran logged ‎08-19-2019 12:54 AM

Hello & welcome to the Community,

It is possible to deploy the dock firmware silently however due to the high risk that a user disconnects the dock during the update, which would result in the dock being rendered useless aka "bricked", the silent install method is never released to the public domain. The package is made available to commercial customers and you should be able to request the ability through your sales representative; certain agreements / parameters will need to be met beforehand.

original: https://forums.lenovo.com/t5/Displays-Options-and-Accessories/Dock-Firmware-Deployment/m-p/4149494#M...

Andy

English Community Leader Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points Did you find a post helpfull? You can thank the member by clicking on the star below their post awarding them Kudos

Please don't ask me questions by Personal Message; questions belong in the forums.