This commit is contained in:
Seth Vargo 2016-05-27 19:08:49 -04:00
parent 01369342db
commit fc8e97cd89
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 7 additions and 3 deletions

View File

@ -9,9 +9,13 @@ module VagrantPlugins
class RDP
def self.rdp_client(env, rdp_info)
# Setup password
cmdKeyArgs = ["/add:#{rdp_info[:host]}:#{rdp_info[:port]}", "/user:#{rdp_info[:username]}", "/pass:#{rdp_info[:password]}"]
Vagrant::Util::Subprocess.execute("cmdkey", *cmdKeyArgs )
cmdKeyArgs = [
"/add:#{rdp_info[:host]}:#{rdp_info[:port]}",
"/user:#{rdp_info[:username]}",
"/pass:#{rdp_info[:password]}",
]
Vagrant::Util::Subprocess.execute("cmdkey", *cmdKeyArgs)
# Build up the args to mstsc
args = ["/v:#{rdp_info[:host]}:#{rdp_info[:port]}"]
if rdp_info[:extra_args]