Hi, have a look here for more info on what oBdA has suggested...
http://www.experts-exchang
Regards,
Rob.
Main Topics
Browse All TopicsI want to create a shortcut to startup a remote desktop session with the mstsc.exe, with all information predefined. Not to use a RDP connection file. Predefined must be:
Logon domain name (not local login to the server)
Username (%username% ?)
full screen
Colors, High Color (15 bit)
Display the connection bar when in full mode
Local devices and resources - Clipboard (only)
Is this possible by using VB Script?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi, have a look here for more info on what oBdA has suggested...
http://www.experts-exchang
Regards,
Rob.
Hi oBdA RobSampson, thank you for your reply. A pitty that VBScript can't be very much of help here.
The reason I'm looking for a workaround is because of a "logon to: this computer" problem.
We have upgraded our domain Active Directory to Windows server 2008, the functional level is still Windows Server 2003. from that moment on the users started complaining that they couldn't logon to the terminal server. From Remote Desktop Client 6.0 on there are improved authentication security features added, users have to enter their credentials twice. The second time in the "Log on to:" the local computer / server is automatically listed, instead of the domain name. Logon locally is blocked. Users have to manually select the domain to log on to, instead of the local server.
We have enabled the Always prompt for password GPO on the terminal servers. Users logon using a RDD file. It is possible to ad the string "EnableCredSSPSupport:i:0"
The only time it automatically selects the domain to logon to is when we ad the string "username:s:DOMAINNAME\USE
We want to avoid having to create a RDP file for every user, containing the string "username:s:DOMAINNAME\USE
Is there a work around to force "logon to: Domain", to avoid manually having to change it from logon to: this computer?
After a little bit more testing I've noticed that Vista adds the following string to the RDP file when saving it as a new file:
promptcredentialonce:i:1
This does not work for XP, nor for win2k3.
The string:
domain:s:domainname
does also work with Vista and 2008 Server.
Does anybody know if there is a patch / hotfix available to make promptcredentialonce:i:1 and domain:s:domainname function in XP or 2k3?
As I said: if you're creating the rdp file dynamically through a script, then this can be done.
First, create an rdp file containing the information you require, then open it in Notepad (or your preferred text editor).
Add all settings (except username and domain) to the stub batch file below where you already see the settings for username and domain, and prepend them with
>>"%RDPFile%" echo
Adjust the name of the rdp file it's generating.
Save it as YourServer.cmd or Whatever.cmd.
Then simply start the script. If you start it through a shortcut, you can give it a nicer icon, for example from mstsc.exe or shell32.dll.
Wow, super! I think you just found the solution for me.
In the other sugested link http://www.experts-exchang
it is sort of the same solution using VBScript.
Great, thank you! :-))))))))
Business Accounts
Answer for Membership
by: oBdAPosted on 2009-01-20 at 14:25:03ID: 23425003
Won't work. There is only a limited number of arguments that can be passed in the command line (enter "mstsc.exe /?" for details), the rest has to be done through an rdp file.
The closest thing is to create the rdp file (which is a simple text file) "on the fly" from a script and run mstsc.exe with the file as argument.