2017-10-19 52 views
0

我發現我喜歡命令行「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當它是一個命令行工具。無論戴爾如何。無論如何,如果有人知道如何在網絡中的遠程系統上使用此功能,那麼您將非常高興知道,所以我不必中斷用戶的工作流程,爲他們安裝驅動程序更新。完成後,我可以通過電子郵件將其重新啓動計算機。

謝謝!

回答

1

這個竊聽我的年齡也到我的工作,這一工作:

cmd /c start /wait "" "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /log C:\ProgramData\Pearson\Logs