diff --git a/plugins/hosts/windows/cap/rdp.rb b/plugins/hosts/windows/cap/rdp.rb index aec802168..009dac377 100644 --- a/plugins/hosts/windows/cap/rdp.rb +++ b/plugins/hosts/windows/cap/rdp.rb @@ -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]