Not sure (honestly) if that works in winnt...
if not, try:
echo password | net use R: \\RemotePC\share /user:RemotePC\Username
Main Topics
Browse All TopicsI am running a WinNT Domain (don't laugh it works).
I have a device on my network (Martor Shared Storage II drive) and I want to restrict access to it. I spoke with Maxtor tech support and was told that the device does not allow for the use of permissions from the PDC. I can however set a local username and password on the device and allow only named users to access the device.
I can map and browse to the unit and when I do so I am prompted to a username and password.
I currently use logon scripts to map my users network drive access. I was wondering if there is a way to use something like the net use command in a users logon script and then add the username and pass from the Maxtor storage device to the script to automatically map to the drive without being prompted for a user name and pass.
thanks all
Kerry
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi - - I am a bit confused about what names should be used where...
The Maxtor drive that I am trying to connect to is named rctv-gis. It is viewable in Network Neighborhood.
The user and password that have been set up on the Maxtor drive are...
user: test
password: test
note that this is NOT a domain username - - it is a username given within Maxtors software
The folder on the device that I wish to control access to is names rctvstor
Where I am getting confused in your instruction set is where you seem to use three names:
RemotePC
user
Username
if the drive has the name of rctv-gis and the folder is rctvstor and the username and password are both test.. how would you plug this into the commands you have provided.
thanks
Kerry
I'm not familiar with any Maxtor software that allows you to configure drive mapping/sharing...
From the system you're on, you have a folder:
C:\rctvstor
correct?
To share it out, type the following from a command line:
net share MyShareName=C:\rctvstor
Now, to identify the computername, type:
echo %computername%
Whatever that comes back as, is what you use to connect to...
So, if it returns
Computer1
from a remote system, you would use:
net use * \\Computer1\MyShareName /user:Computer1\Username password
Where Username is the username that is local to Computer1
and password is the password for that account...
But did you try 'my' last command?
There's very little difference in:
net use * \\Computer1\MyShareName /user:Computer1\Username password
and
net use S:(Drive Letter to Map) \\ECC\ECC-S-SHARED(Share Name) test(password) /USER:test(username) /persistent:no
The top one takes the next availble drive letter - the bottom explicitly defines it as S:
Both map a drive using username and password...
The above command is correct net use S:(Drive Letter to Map) \\ECC\ECC-S-SHARED(Share Name) test(password) /USER:test(username) /persistent:no
but when you are connecting share name which is containing spaces then above commond will not work for that you need to use
net use S:(Drive Letter to Map) "\\ECC\ECC-S-SHARED(Share Name)" test(password) /USER:test(username) /persistent:no
Business Accounts
Answer for Membership
by: sirbountyPosted on 2007-01-26 at 06:41:42ID: 18404323
You can try..
net use * \\RemotePC\share /user:RemotePC\Username password