Solved

Using bat file to automatically log into 2003 server using RDP

Posted on 2011-02-18
5
732 Views
Last Modified: 2012-05-11
Does anyone know if it possible to put username and password into the bat file?
0
Comment
Question by:fairtech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 59

Assisted Solution

by:Darius Ghassem
Darius Ghassem earned 166 total points
ID: 34928813
At this point there is not a way to use RDP with a batch file to automatically load username and password
0
 
LVL 9

Assisted Solution

by:Michael Knight
Michael Knight earned 166 total points
ID: 34928941
you could certainly save the user credentials in the rdp 'shortcut' and just call it from a batch file.

Create a rdp file, save it as foo.rdp

make a batch file with the following in it:

"C:\Path\to\file\foo.rdp"

save it as run_foo.bat

0
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 168 total points
ID: 34928943
0
 

Author Comment

by:fairtech
ID: 34929107
I can't believe I didn't think of saving the credentials in the rdp file. I knew about that, but I was so focused on using a bat file that I forgot about it.
0
 
LVL 9

Expert Comment

by:Michael Knight
ID: 34929120
Jinx, you owe me a coke.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Determining the an SCCM package name from the Package ID
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question