Re: microsoft terminal server



Tim Golden wrote:
yqyq22@xxxxxxxxxxx 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+username+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
.



Relevant Pages

  • Re: Automate "Get External Data" over HTTP with a BasicAuth protected ressource
    ... > I don't recall the exact syntax off the top of my head but it was ... If a that URL needs credentials ... if I try to automate that process using ... >> username and password via InputBoxes? ...
    (microsoft.public.access.externaldata)
  • How to automate web login?
    ... Trying to automate a web login (username and password) to a Yahoo group. ... Dim IeApp As InternetExplorer ... Dim sURL As String ...
    (microsoft.public.vb.general.discussion)
  • How to automate web login?
    ... Trying to automate a web login (username and password) to a Yahoo group. ... Dim IeApp As InternetExplorer ... Dim sURL As String ...
    (microsoft.public.excel.programming)
  • Re: Automate Task scheduler password change
    ... > button at the Run as field of each jobs in my task scheduler. ... You may not need to automate this after all. ... one password for every different UserName. ... from the GUI, only the creator. ...
    (microsoft.public.win2000.general)
  • Re: Enabling a disabled service
    ... Remotely change the value of "Start" in the following registry key: ... I am sure you could automate this with a Python script using the ...
    (microsoft.public.win2000.networking)