以编程方式连接到Windows Server,可能通过RDP,没有GUI? [英] Connecting to Windows Server programmatically, possibly through RDP, without a GUI?

查看:130
本文介绍了以编程方式连接到Windows Server,可能通过RDP,没有GUI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此我们有几十个运行带有RDP的Windows Server 2012s的远程站点,我们通过RDP在这些服务器上完成大部分工作。这一切都很棒。

So we have a few dozen remote sites running Windows Server 2012s with RDP, and we do most of our work on those servers through RDP. That's all great.

最近,我们决定在没有RDP GUI的情况下以编程方式连接到这些服务器,即完全通过像SSH这样的命令行,能够浏览驱动器并传输文件,而无需通过Windows
UI。我们希望用C ++构建这个功能,以便它可以合并到我们拥有的各种其他内部软件的后端;所以我们有一些功能可以获取文件列表或启动文件传输。最重要的是,我们
希望能够通过RDP或服务器上已有的其他服务来实现,这样我们就不必重新配置所有服务器或部署新软件。

Recently, we've decided that we want to connect to these servers programmatically, without the RDP GUI - ie, access entirely through a command line like SSH, to be able to browse the drives and transfer files without going through the Windows UI. We want to build this functionality in C++ so that it can be incorporated into the backend of a variety of other in-house software we have; so we'd have functions that would fetch lists of files or initiate file transfers. Most importantly, we want to be able to do it through RDP or some other service already present on the servers so that we don't have to reconfigure all of our servers or deploy new software.

所以我的问题是,这是否可以通过RDP,如果是这样,我会从哪里开始?浏览API,我不能在我开始的地方做出正面或反面,或者如果RDP甚至能够做到这一点。

So my question is, is this possible through RDP, and if so, where would I start? Glancing through the API, I can't make heads or tails of where I'd begin, or if RDP is even capable of it.

推荐答案

b

Hi,

感谢您在这里发帖。

Thanks for posting here.

>>所以我的问题是,这是否可以通过RDP,如果是这样,我将从哪里开始?浏览API,我不能在我开始的地方做出正面或反面,或者如果RDP能够做到这一点。

>> So my question is, is this possible through RDP, and if so, where would I start? Glancing through the API, I can't make heads or tails of where I'd begin, or if RDP is even capable of it.

也许你可以参考这个:
https://github.com/rdesktop/rdesktop


Maybe you could refer to this: https://github.com/rdesktop/rdesktop

祝福,祝你好运b $ b

Best Wishes,

Jack Zhang

Jack Zhang

这篇关于以编程方式连接到Windows Server,可能通过RDP,没有GUI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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