使用dcu-cli.exe在远程系统上安装Dell更新
问题描述:
我发现我喜欢命令行“Dell Command | Update”工具,名为dcu-cli.exe
。我可以在远程会话中运行它,以管理员身份运行CMD,使用它和它的依赖关系推送到目录,并且它运行得非常好。但是,但希望能够通过psexec.exe来执行此操作,因为暂时禁用网络中的PowerShell远程处理。使用dcu-cli.exe在远程系统上安装Dell更新
当我与psexec.exe跑了,我得到了:
Unhandled Exception:
J:\CommandUpdate>System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
at Dell.CommandUpdate.CLI.Program.ShowWorking()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
当跑PSEXEC,这是怎么了,我通常运行它:
psexec.exe -s \\computer -nobanner cmd.exe /c "pushd \\path\to\CommandUpdate && dcu-cli.exe"
psexec
会用我的管理员凭据在cmd.exe
的-u
和-p
。
我的预感是BIOS更新抛出一个GUI框要求输入管理员密码。它为什么这样做? LOL当它是一个命令行工具。无论戴尔如何。无论如何,如果有人知道如何在网络中的远程系统上使用此功能,那么您将非常高兴知道,所以我不必中断用户的工作流程,为他们安装驱动程序更新。完成后,我可以通过电子邮件将其重新启动计算机。
谢谢!
答
这个窃听我的年龄也到我的工作,这一工作:
cmd /c start /wait "" "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /log C:\ProgramData\Pearson\Logs