Unhandled exception when attempting to run command via script or remote CLI

Unhandled exception when attempting to run command via script or remote CLI

I'm trying to run the program

c:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe

remotely via desktop central, and cannot get it to work. If I try to run the exe with any of its supported flags, get an error.

If I try to run it via remote CLI:

Unhandled Exception: 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.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()

If I try to run it via a script:

Unhandled Exception: 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.SendMessageToConsole(String message, Boolean newline)
   at Dell.CommandUpdate.CLI.Program.Main(String[] args)

If I am using the target computer directly it works fine - both via command prompt and running my custom script.

Please could you help identify what the issue is?

Many thanks!






                New to ADSelfService Plus?