Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 769
  • Last Modified:

How to create batch file that reconnects a network drive with username and pasword?

How can I create a batch file that reconnects a network drive with username and pasword so the user just click in a shortcut?

I'm using XP Pro with Citrix Metaframe remote access software which does not save my settings after log off.
0
jeffbon
Asked:
jeffbon
  • 5
  • 4
  • 2
  • +1
1 Solution
 
qwaleteeCommented:
NET USE DriveLetter: \\ComputerNmeOrIP\ShareName /USER:UserName PasswordValue

E.g.,

net use d: \\MYDELLSERVER\MYDOCUMENTS /USER:QWALETEE superD00per
0
 
qwaleteeCommented:
Alternative: If the resource is located on a computer/domain with an account and password thatmatches your Citrix Windows login username and password, then Windows (on Citrix) will most likely present the credentials automatically, and since they match, no prompt appears.
0
 
ShineOnCommented:
Yah, but the problem with doing this is you have your password in clear text in a bat file.  My security admin personality cringes at the thought... ;)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
qwaleteeCommented:
What on earth?!  SineOn did NOT give any sort of answer, just an "FYI!"
0
 
ShineOnCommented:
That's true.  And my comment was regarding using a batch file shortcut.  Not being a Citrix Expert, it may be that the alternative qwaletee presented would be secure, or reasonably so.  

Can you please either reassign points or explain how I got a grade A answer on this?
0
 
jeffbonAuthor Commented:
How do you reassign points?
0
 
ShineOnCommented:
Post a request in the general Community Support topic area.  A moderator will help you out.
0
 
NoodlesWIUCommented:
I know I dont like having plain text for passwords also, I cringe along with you.  All depends on who has access to your computer, and how big a threat is possible.  I know at my work place simply hiding files, or placing them in a folder named anything that wouldnt make you think its their could work.
0
 
ShineOnCommented:
.... until you get that ONE user that knows enough to be dangerous, and might get P.O.'d at the company for some reason.

The biggest threat is from within.  That's what all of the conventional wisdom points to.

Even then, you get someone that plants a backdoor and looks around for a net use command, and you're toast.
0
 
jeffbonAuthor Commented:
I requested reassignment of points.

Sorry guys...
0
 
qwaleteeCommented:
Well, that's why I sugegsted using "matching" login id/password for the client PC and teh share.  That way, depending on WIndows version and configuration, it may not need any password prompt.
0
 
ShineOnCommented:
Reassignment of points supported on the "losing" end - qwaletee gave the closest answer for you.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 5
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now