Question Locked

NET USE COMMAND

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to write a net use command to map a home drive for a user but itdoes not work..
my server name is SERVER1 and
the user name is Dan.
the home direcory I am trying to map is on SERVER1 and is a subfolder of the big USER folder.
I am typing the following net use command;
net use N: \\SERVER1\USER /USER:domain001\Dan

but I am still geting system error 59, or 67...

any help??
thanks

11 replies

by ic-it

Presumably the user already has permission so just use the;
net use N: \\SERVER1\USER\HomeFolderName

by tonythetiger

will have a separate home directory, and that the directories already exist under a directory on SERVER1 with the share name of USER

Net use n: \\server1\user\%username%

by delachriyo

Thanks for the reply but it still did not work for me the syntax I am puting asuming that the following metrics are fulfilled -

The user has a home directory on the server called DAN
the user home directory is within the USER folder and is called DAN
the server name is SERVER1
the Domain name is DOMAIN001

the syntax I used is:

net use N: \\SERVER1\USERS\%username%
and it prompted me for a sername and for a password, but when I put the user name DAN and the password I got
system error 59 .....unexpected network error occured.

same thing when I try the secnd option.

any idea please!!!!!!!

by ic-it

Is the users domain user name simply Dan?
Does Dan have the proper permissions on the folder?
Lastly is Dan actually logged onto the domain?

by delachriyo

Yes the Username is DAN and his home folder in the USER directory is called DAN.
Dan is a user of the Domain and can log onto the Domain without problems.

by tonythetiger

You aren't trying to use an XP Home machine on a domain are you?

by delachriyo

I am using a Windows XP SP2 workstation to connect to the server running WIN2003 OS.
the permissions are corrects in a sense thatthe user DAN have full control of his home directory and can access the USER folder.

It is not only the user who cannot connect with that command, but myself cannot when in fact I've got full access every folders on the server...

ANY IDEA ABOUT A COMMAND THAT WILL SORT ME OUT !!!!!!

by churdoo

If mapping through the USER share, as in "net use p: \\server1\user\%username%" the domain users need to have Full Control on the USER SHARE. For NTFS permissions, they need READ permissions on the parent USER folder, but do not let that permission propogate to subfolders or all users will be able to browse other users' home folders. Then of course, the user will need Full Control of his own home folder.

Lastly, did you create the user home folders in ADUC / Properties / Profile / Home Directory? If so, that will create the home folder with the proper NTFS permissions on the home folder itself. You can also assign the drive letter on the same dialogue and may not need the net use command.

by rob miners

Try this from a command line on the Server.

xcacls %LOGONSERVER%\users\dan /T /G "Administrators":F dan:F

If you are not using Windows Home Edition why don't you use the built in feature and redirect My Documents.

I normally create the Users Home Directory Folders first. EG: D:\users\user1

The Base Users Folder needs to be Shared with appropriate permissions.

Open up Active Directory users and computers. Select all users that need the update. They all should be highlighted. Right Click Properties, Profile Tab, Place a check mark in the home folder. Click Connect radio button, provide the drive letter and path: \\server\Users\%username%.

Permissions will be applied.

The next time that the user opens My Documents or navigates through Explorer he/she is in his/her Home Folder on the specified Drive Letter.

< another alternative >

How to assign a home folder to a user

http://support.microsoft.com/kb/816313

Assign a home folder to a user from the command line
You can use the net user command to assign a home folder to a user from the command line. For example, at the command line, type the following command, and then press ENTER:
net user tester /homedir:\\server\tester$
This command assigns the tester$ hidden shared folder on the server to the user Tester.

by tonythetiger

there are two kinds of permissions, NTFS permissions and share permissions. This sounds like a problem with share permissions.

Is the USER folder shared? Are the share permissions set right? (we set ours to everyone full control, and control access to individual files/folders on that share with NTFS permissions.)

This discussion is closed to new replies.