microsoft terminal server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yqyq22@hotmail.com

    microsoft terminal server

    HI,
    i would like to know if there is a way to create a python script for
    automate mstsc.exe username and pwd credential, i mean i would create
    a script that first open mstsc.exe and in the same time is able to
    fill [computer+userna me+pwd].
    Regards
    thanks a lot in advance
  • Tim Golden

    #2
    Re: microsoft terminal server

    yqyq22@hotmail. com wrote:
    HI,
    i would like to know if there is a way to create a python script for
    automate mstsc.exe username and pwd credential, i mean i would create
    a script that first open mstsc.exe and in the same time is able to
    fill [computer+userna me+pwd].
    Haven't tried it, but in principle you should be
    able to use the win32cred package from pywin32
    to store your username / password and use an .rdp
    file to automate the rest of the settings, including
    the server.

    TJG

    Comment

    • Larry Bates

      #3
      Re: microsoft terminal server

      Tim Golden wrote:
      yqyq22@hotmail. com wrote:
      >HI,
      >i would like to know if there is a way to create a python script for
      >automate mstsc.exe username and pwd credential, i mean i would create
      >a script that first open mstsc.exe and in the same time is able to
      >fill [computer+userna me+pwd].
      >
      Haven't tried it, but in principle you should be
      able to use the win32cred package from pywin32
      to store your username / password and use an .rdp
      file to automate the rest of the settings, including
      the server.
      >
      TJG
      Use Remote Desktop Connection to create/save an .rdp file that can connect to
      your remote computer. Then use os.startfile('< filename>'.rdp) . It will call
      mstsc for you.

      -Larry

      Comment

      Working...