Question

  • Creator
    Topic
  • #2150658

    NET USE COMMAND

    Locked

    by delachriyo ·

    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

All Answers

  • Author
    Replies
    • #2914300

      Clarifications

      by delachriyo ·

      In reply to NET USE COMMAND

      Clarifications

    • #2914295

      Try this way

      by ic-it ·

      In reply to NET USE COMMAND

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

    • #2914275

      Assuming that each user

      by tonythetiger ·

      In reply to NET USE COMMAND

      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%

      • #2914174

        NET USE COMMAND FOR MAPPING HOME FOLDER

        by delachriyo ·

        In reply to Assuming that each user

        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!!!!!!!

        • #2914073

          Couple of things

          by ic-it ·

          In reply to NET USE COMMAND FOR MAPPING HOME FOLDER

          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?

        • #2914066

          NET USE COMMAND FOR MAPPING HOME FOLDER

          by delachriyo ·

          In reply to Couple of things

          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.

        • #2914026

          What OS is on the server, and the workstation?

          by tonythetiger ·

          In reply to NET USE COMMAND FOR MAPPING HOME FOLDER

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

        • #2926382

          NET USE COMMAND FOR MAPPING HOME FOLDER

          by delachriyo ·

          In reply to What OS is on the server, and the workstation?

          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 !!!!!!

        • #2926356

          A couple things

          by tonythetiger ·

          In reply to NET USE COMMAND FOR MAPPING HOME FOLDER

          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.)

        • #2913993

          Also check permissions

          by churdoo ·

          In reply to NET USE COMMAND FOR MAPPING HOME FOLDER

          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.

    • #2926380

      Not the way that I would do it

      by rob miners ·

      In reply to NET USE COMMAND

      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.

Viewing 3 reply threads