如何运行或导入远程dll [英] How to run or import a remote dll

查看:70
本文介绍了如何运行或导入远程dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我要运行MSI.dll.

我可以获取本地系统的输出,但是无法获取远程系统的输出.
请通过c#代码提供帮助.

Hi All,

I want to run MSI.dll.

I am able to get the output for local system, but I am unable to get the output for a remote system.
Kindly help through c# code.

推荐答案

如果您尝试在PC上远程安装软件,那么我怀疑它并不像执行MSI.DLL"那样简单.在另一台PC上. Google的远程安装",您应该找到相关信息.不过,不要指望这很容易,因为OS Security在这里不利于您!
If you are trying to remotely install software on a PC, then I suspect it is not as easy as just "executing MSI.DLL" on a different PC. Google for "Remote Installation" and you should find relevant info. Don''t expect it to be easy though, OS Security is against you here!


这可能是一个遥不可及的问题,但是按照您在问题中所说的,我认为安装已运行作为控制台应用程序(否则,您将不得不解释获取输出"的含义).如果要在运行远程进程时捕获控制台输出,则可以考虑使用Mark Russinovich的Sysinternal工具 PsExec [ ^ ]命令.它可以让您在本地计算机上转储进程的输出的同时,在远程计算机上运行命令.您将需要足够的权限来执行此操作,但是PsExec允许您在其调用中传递用户名和密码.

之前我曾经用PsExec做过类似的事情,但是必须承认它是在子网中的LAN上,所以防火墙没有任何问题.您的结果可能会有所不同:).

祝你好运!
This may be a long shot but by what you said in your question I take it the installation is run as a console application (else you''d have to explain what you meant by "get the output"). If you want to capture console output when running a remote process you might consider using Mark Russinovich''s Sysinternal Tool PsExec[^] command. It will let you run a command on a remote machine while dumping the output of the process on your local PC. You''ll need sufficient rights though to do that, but PsExec lets you pass user and password in its invokation.

I have done stuff like that with PsExec before, but must admit it was on a LAN in a subnet, so I didn''t have any issues with firewalls. Your results may vary :).

Best of luck!


这篇关于如何运行或导入远程dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆