Generating RDP Profile Issue

北城余情 提交于 2019-12-07 13:46:56

问题


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";

回答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.



来源:https://stackoverflow.com/questions/7654992/generating-rdp-profile-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!