Re: Net use command to map network drive
- From: "Anthony Wieser" <newsgroups-sansspam@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jul 2009 07:20:00 +0100
"longacre10" <longacre10@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:AA7156B4-E6A9-437E-B8FA-5FE7BB0F0606@xxxxxxxxxxxxxxxx
Good morning,
I was hoping someone could help out with an issue I'm having. I am trying
to create a batch file that will map a Windows Server drive and save the
username/password credentials (after a reboot). I also want it to map the
drive without prompting the user for the credentials.
Currently I am using the following:
net use R: \\192.168.2.25\WindowsServer /savecred /persistent:yes
This will map the drive fine and keep it mapped after a reboot but it
prompts the user for the credentials which I don't like. I originally tried
the following and it mapped fine and automatically inputted the credentials
which we're looking for but would not save them after a reboot:
net use R: \\192.168.2.25\WindowsServer /user:username password
/persistent:yes
Does anyone have any ideas? Even if I have to use multiple commands for the
batch file it would be an option. I was hoping to user the /savecred switch
with the /user switch but that apparently is not allowed. I am currently
using an XP machine to do this. Thanks!
I couldn't find a way to do this either for one of my clients, so we wrote Autoshares Network Connection Manager
http://www.wieser-software.com/autoshares/
which saves the user credentials (encrypted) in the user's registry, and reconnects at login.
Anthony Wieser
Wieser Software Ltd
.
- References:
- Net use command to map network drive
- From: longacre10
- Net use command to map network drive
- Prev by Date: Error due to Undefined behavior in TCP layer
- Next by Date: Facing problem on Vista firewall for incoming connection
- Previous by thread: Re: Net use command to map network drive
- Next by thread: NDIS programming
- Index(es):
Relevant Pages
|