Announcement

Collapse
No announcement yet.

Home drive or Dfs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Home drive or Dfs

    Hi all

    We have around 300 users in our domain enviornment. I need to create home drive for all the users in my domain and give appropriate permission..we have a snap server and the home drive should be located there(//snapsvr/share/username).is there way to create home drive for all the users and give appropriate permission using any batch file or vbs script..which one is good to implement. dfs or homedrive...

  • #2
    Re: Home drive or Dfs

    I'd create a vbs logon script to map the folder, using a variable for their username.
    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Home drive or Dfs

      You could use something like this if you're using W2K3:
      Code:
      dsquery user "OU=test,DC=domain,DC=com" | dsmod user -hmdrv \\Servername\homedrives\$username$
      You have to test it for the exact syntax
      Last edited by Dumber; 29th March 2008, 09:41.
      Marcel
      Technical Consultant
      Netherlands
      http://www.phetios.com
      http://blog.nessus.nl

      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
      "No matter how secure, there is always the human factor."

      "Enjoy life today, tomorrow may never come."
      "If you're going through hell, keep going. ~Winston Churchill"

      Comment


      • #4
        Re: Home drive or Dfs

        hai..thanks for th quick reply.suppose if there is more than 300 users i need to type the dsquery cmd for each and every users for creating home drive.any other way so that the users home drive is created in the snap server //snap/share/username automatically.

        Comment


        • #5
          Re: Home drive or Dfs

          dsquery will do it to all users.

          For folder creation I would automate it also by creating a login script.
          For example: Mkdir \\servername\share\%username%

          A few days later I would run the dsquery command piped to the dsmod.
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment


          • #6
            Re: Home drive or Dfs

            i got the vb script which map my home drive when i run it from my machine..i wanna a vb script which maps corresponding users home drive at the time of login in the domain.


            Option Explicit
            Dim objNetwork
            Dim strDriveLetter, strRemotePath

            'To share the \\snap2\Users\sudheshpn

            strDriveLetter = "N:"
            strRemotePath = "\\snap2\Users\sudheshpn"
            Set objNetwork = CreateObject("WScript.Network")
            objNetwork.MapNetworkDrive strDriveLetter, strRemotePath

            Comment


            • #7
              Re: Home drive or Dfs

              Why not set the Home Drive in the User's Properties page? In 2003 Server this can be done in one hit for all users in an OU.

              Click image for larger version

Name:	home-drive-profile.jpg
Views:	1
Size:	41.0 KB
ID:	463509
              1 1 was a racehorse.
              2 2 was 1 2.
              1 1 1 1 race 1 day,
              2 2 1 1 2

              Comment


              • #8
                Re: Home drive or Dfs

                Originally posted by biggles77 View Post
                Why not set the Home Drive in the User's Properties page? In 2003 Server this can be done in one hit for all users in an OU.

                [ATTACH]2076[/ATTACH]
                Which is also done by the DSMOD command
                Marcel
                Technical Consultant
                Netherlands
                http://www.phetios.com
                http://blog.nessus.nl

                MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                "No matter how secure, there is always the human factor."

                "Enjoy life today, tomorrow may never come."
                "If you're going through hell, keep going. ~Winston Churchill"

                Comment


                • #9
                  Re: Home drive or Dfs

                  thanks a lot for the quick reply.i know this mthd but we have around 300 users and i need to do this manually for each users and it takes time....

                  Comment


                  • #10
                    Re: Home drive or Dfs

                    You can do them all at once if they are all in the same OU by selecting all of them, right clicking them and selecting properties, going to the Profile tab and modifying the home directory setting. If they are not all in the same OU you can use the Saved queries node in ADUC to make a query for all users and do the same thing there. You could also download and use ADModify to do the same thing.

                    also as far as DFS or Home directories: it's not one or the other as they are not two competing methods, they are two different things that have nothing to do with each other. You could use DFS for any shared folder on your network without using home directories and you could also point your Home directories to DFS links if you wanted to.

                    Comment


                    • #11
                      Re: Home drive or Dfs

                      Slightly off topic as well (only because joeqwerty has told you the easy way!) but also have a look at ADModify. It allows bulk user changes and I have to say is bloomin marvelous!

                      http://www.codeplex.com/admodify/Rel...ReleaseId=6065
                      cheers
                      Andy

                      Please read this before you post:


                      Quis custodiet ipsos custodes?

                      Comment

                      Working...
                      X