无法远程运行命令行C#capture program [英] Unable to remotely run command line C# capture Program
问题描述
我试图通过调用本地C#命令行脚本从Kinect V2捕获帧数据。在远程计算机上本地调用以及通过远程桌面运行时,脚本运行正常。但是,当通过PowerShell或Telnet或PSExec运行时,程序不捕获任何数据(除了在远程计算机上创建目录之外的其他
)。有没有人遇到过这个问题? PowerShell,Telnet和PSExec将运行其他程序(例如:一个简单的关闭例程,或ipconfig等)。
c#命令行 需要 以管理员身份运行,以便在任何用户登录时作为独立进程运行。请尝试添加以下行:
process.StartInfo.Verb =" runas"
I am trying to capture frame data from a Kinect V2 by invoking a local C# command line script. The script runs fine when invoked locally on the remote machine and when running through remote desktop. However, the program does not capture any data (other than creating the directories on the remote machine) when run through PowerShell or Telnet or PSExec. Has anyone encountered this issue before? PowerShell, Telnet and PSExec will run other programs just fine (e.g.: a simple shutdown routine, or ipconfig, etc.)
c# command lines need to run as administrator to execute when running as standalone process wothout any user logged in. Try adding the following line:
process.StartInfo.Verb = "runas"
这篇关于无法远程运行命令行C#capture program的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!