Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using bat file to automatically log into 2003 server using RDP

Posted on 2011-02-18
5
Medium Priority
?
733 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 664 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 664 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 672 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

715 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