Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


mstsc scripting

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2519
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> mstsc scripting
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 mstsc scripting - 3/30/2005 5:35:21 AM   
  azmantek

 

Posts: 14
Score: 0
Joined: 3/15/2005
From:
Status: offline
Task:
To create a VBSCript shortcut on user desktop to connect to a terminal server by using the workstation name as the user name. For example the computer name is 12345 then it will conntec to the terminal server using the username 12345 and automatically log on to the terminal server ( user doesn't have password).

Please advise. Thanks!
 
 
Post #: 1
 
 Re: mstsc scripting - 3/30/2005 6:41:42 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
there is a problem with that, its scriptable but you cant login to TS with a blank password.

(in reply to azmantek)
 
 
Post #: 2
 
 Re: mstsc scripting - 3/30/2005 6:49:41 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
kirrilian,

Could you please post the script for the scritable portion mentioned above ? I'm interested in taking a look at it =)

Thanks.

(in reply to azmantek)
 
 
Post #: 3
 
 Re: mstsc scripting - 3/30/2005 7:09:45 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
well i had a couple of ideas for the script,

one is to use the web interface for TS and just call the url with vbs

or see if mstsc will accept command line switches, if not create a default .rdp file for the user's login and use vbs to start mstsc

(in reply to azmantek)
 
 
Post #: 4
 
 Re: mstsc scripting - 3/30/2005 9:46:38 AM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
ahh.. I see.

Thanks

(in reply to azmantek)
 
 
Post #: 5
 
 Re: mstsc scripting - 3/30/2005 10:35:18 AM   
  azmantek

 

Posts: 14
Score: 0
Joined: 3/15/2005
From:
Status: offline
Hi kirrilian,
Would you be able to help me with that. I'm still a newbie learning about it. Thanks alot

(in reply to azmantek)
 
 
Post #: 6
 
 Re: mstsc scripting - 3/30/2005 4:40:33 PM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
im going away for a four day weekend but i did a little research on my ideas. im going to assume you dont have tsweb setup on your TS server for now.

mstsc accepts command line switches, go to a cmd window and type mstsc /? for the options. i would create a rdp file with your mstsc then put it in a shared folder somewhere on the network. then use vbs to run mstsc with that rdp file from the network.

alternatively, you can use tsweb on your TS server and use this url to connect to it,
http://servername/tsweb/Default.htm?AutoConnect=1 this will pull up a full screen connection to the same server. i havent tried using vbs to access this but i assume it would work.

(in reply to azmantek)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> mstsc scripting Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts