Solved

Using bat file to automatically log into 2003 server using RDP

Posted on 2011-02-18
5
731 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Determining the an SCCM package name from the Package ID
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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