URL Scheme rewriting for RDP

2013-03-04
2013-03-04
  • Dominik Szalanski

    Hey guys.

    I am trying to create a rule for rdp://.
    My attempt was this:

    cmd://cmdkey /generic:TERMSRV/{URL:RMVSCM} /user:{USERNAME} /pass:{PASSWORD} && mstsc.exe /v:{URL:RMVSCM} && timeout 1 && cmdkey /delete:TERMSRV/{URL:RMVSCM}

    In the cmd.exe it works perfectly but if I try to run it with keepass or "Run As" it does not work.
    Has somebody some advice? I cannot use ">" to put the output in a file.

    Some basic info:
    OS: Windows 7 SP1 x64
    KeePass: 2.21

    Best regards,

    hartzie

     
  • Dominik Reichl

    Dominik Reichl - 2013-03-04

    'cmd://' runs the command using the Windows shell. Here, operators like '&&' are not supported. If you want to use such operators, pass your line to the command line interpreter instead. For example:

    cmd://cmd.exe /C "cmdkey /generic:TERMSRV/{URL:RMVSCM} /user:{USERNAME} /pass:{PASSWORD} && mstsc.exe /v:{URL:RMVSCM} && timeout 1 && cmdkey /delete:TERMSRV/{URL:RMVSCM}"
    

    Best regards,
    Dominik

     
  • Dominik Szalanski

    Danke Dominik.

    Gruß,

    Dominik ;)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks