Cmd 使用dcu-cli.exe在远程系统上安装Dell更新
我发现我喜欢名为Cmd 使用dcu-cli.exe在远程系统上安装Dell更新,cmd,psexec,Cmd,Psexec,我发现我喜欢名为dcu cli.exe的命令行“Dell command | Update”工具。我可以在远程会话中运行它,以管理员的身份运行CMD,将它和它的依赖项一起推送到目录,它运行得非常好。但是,我们希望能够使用psexec.exe执行此操作,因为PowerShell远程处理在网络中暂时处于禁用状态 当我用psexec.exe运行它时,我得到: Unhandled Exception: J:\CommandUpdate>System.IO.IOException: The han
dcu cli.exe的命令行“Dell command | Update”工具。我可以在远程会话中运行它,以管理员的身份运行CMD,将它和它的依赖项一起推送到目录,它运行得非常好。但是,我们希望能够使用psexec.exe执行此操作,因为PowerShell远程处理在网络中暂时处于禁用状态
当我用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
这里不需要/silent
开关吗?