如何远程获取系统的网络共享和连接? [英] How do I remotely obtain a system's network shares and connections?

查看:142
本文介绍了如何远程获取系统的网络共享和连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种远程获取类似于以下控制台应用程序的信息的方法:

I'm looking for a way to obtain information similar to the following console applications, remotely:


  • 净使用

  • 净份额

  • netstat -ano

但是,我需要无需在系统上运行第三方应用程序就能做到这一点。这样可以有效地排除使用psexec远程执行命令的情况,因为psexec随后将作为服务安装。

However, I need to be able to do this without running a 3rd party application on the system. This effectively rules out using psexec to execute the command remotely, because psexec would then be installed as a service.

我应该补充一点,我在远程系统上具有管理凭据。我已经考虑过使用WMI的远程执行功能,但这需要我将输出写入文件,然后再检索它。有可能,但是我想知道是否有人有更好的方法。

I should add that I have administrative credentials on the remote system. I've considered using WMI's remote execution ability, but that requires me to write output to a file and then retrieve it. It's possible, but I'd like to know if anyone has a better way.

我正在使用Delphi 2010。

I am using Delphi 2010.

推荐答案

有几个允许远程访问的Delphi WMI组件。我个人没有使用过远程选项。

there are a couple Delphi WMI components that allow remote access. I have not used the remote options personally though.

MagWmi - http://www.magsys.co.uk/delphi/magwmi.asp (Delphi 2010支持,免费提供源代码)

MagWmi - http://www.magsys.co.uk/delphi/magwmi.asp (Delphi 2010 support, and free with source)

WMISet / NTSet - http://www.online-admin.com /ntset.html (TNTShare
管理本地计算机和远程主机上的共享资源。使用此组件,您可以更改共享设备的列表,查看已由远程用户打开的文件,监视和终止远程会话打开到目标计算机,更改映射的网络驱动器列表。它不是免费的。)

WMISet/NTSet - http://www.online-admin.com/ntset.html (TNTShare Manages shared resources on a local computer and remote hosts. Using this component you can change list of shared devices, see files that have been opened by remote users, watch and terminate remote sessions opened to the destination computer, change list of mapped network drives. It is not free.)

GLibWMI -在Torry.net上找到,主页不可用。 (Delphi 2010支持和带源代码的免费软件)。不知道它是否能够远程访问。我没用过。

GLibWMI - Found at Torry.net, home page not available. (Delphi 2010 support and Freeware with source). Not sure if its capable of remote access. I have not used it.

希望这会有所帮助

这篇关于如何远程获取系统的网络共享和连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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