RDP生成配置文件问题 [英] Generating RDP Profile Issue

查看:697
本文介绍了RDP生成配置文件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

修改的想通了,而不是试图通过使用Mstsc.exe file.rdp启动它,我启动file.rdp,而不是和它的作品就好了。
最终编辑



好吧,我对C#程序的工作,它的部分是自己产生.rdp文件可以自动将与连接时产生它提供的所有信息。



当我尝试启动命令行的RDP文件,我得到了它不是一个vaild连接配置文件。如果我双击它在Windows中它打开了,连接和日志,
所以我知道的密码哈希值,其发电是正确的。我不明白为什么它通过命令行无效。



下面是什么正在.rdp文件



产生

 详细地址:S:+ IP 
的用户名:S:+用户
域:S:+域名
密码51:b:+通行证
口:我:+端口
屏幕模式ID:I:1
desktopwidth:I:800
desktopheight :I:600
会议BPP:我32
自动连接:I:1启用
autoreconnection:I:1
压缩:I: 1
的KeyboardHook:ⅰ:2
audiomode:ⅰ:2
redirectdrives:ⅰ:1
redirectprinters:ⅰ:1
redirectcomports:I:0
redirectsmartcards:I:0
displayconnectionbar:I:1
备用外壳:S:
壳工作目录:■ :
禁用墙纸:I:1
禁用全窗口拖动:I:1
禁用菜单anims:I:1
禁用主题:我:1
bitmapcachepersistenable:ⅰ:1;


解决方案

想通了,而不是试图通过启动它file.rdp的mstsc.exe,我启动file.rdp,而不是和它的作品就好了。


edit Figured it out, instead of trying to launch it via mstsc.exe file.rdp, I launch file.rdp instead and it works just fine. end edit

Ok I am working on a c# program, part of it is generating its own .rdp file that will automatically connect with all information provided when it is generated.

When I try to launch the rdp file from command line I get that it's not a vaild connection profile. If I double click it in windows it opens up, connects and logs in. So I know the password hashes that its generating are correct. I don't understand why its not valid via command line.

Here is whats being generated in the .rdp file

"full address:s:" + IP
"username:s:" + User
"domain:s:" + Domain
"password 51:b:" + Pass
"port:i:" + Port
"screen mode id:i:1"
"desktopwidth:i:800"
"desktopheight:i:600"
"session bpp:i:32"
"auto connect:i:1"
"autoreconnection enabled:i:1"
"compression:i:1"
"keyboardhook:i:2"
"audiomode:i:2"
"redirectdrives:i:1"
"redirectprinters:i:1"
"redirectcomports:i:0"
"redirectsmartcards:i:0"
"displayconnectionbar:i:1"
"alternate shell:s:"
"shell working directory:s:"
"disable wallpaper:i:1"
"disable full window drag:i:1"
"disable menu anims:i:1"
"disable themes:i:1"
"bitmapcachepersistenable:i:1";

解决方案

Figured it out, instead of trying to launch it via mstsc.exe file.rdp, I launch file.rdp instead and it works just fine.

这篇关于RDP生成配置文件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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