Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   microsoft terminal server (http://www.velocityreviews.com/forums/t632872-microsoft-terminal-server.html)

yqyq22@hotmail.com 08-29-2008 08:46 AM

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+username+pwd].
Regards
thanks a lot in advance

Tim Golden 08-29-2008 10:03 AM

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+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

Larry Bates 08-30-2008 12:39 PM

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+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


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.