fixed cmdkey arguments

The arguments contained not needed TTERMSRV/
This commit is contained in:
agdula 2015-05-02 18:01:52 +02:00
parent aaebe97e8a
commit f035664b78
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ module VagrantPlugins
class RDP
def self.rdp_client(env, rdp_info)
# Setup password
cmdKeyArgs = ["/add:TERMSRV/#{rdp_info[:host]}:#{rdp_info[:port]}", "/user:#{rdp_info[:username]}", "/pass:#{rdp_info[:password]}"]
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