Announcement

Collapse
No announcement yet.

Error when trying to import multiple users to AD

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

  • Error when trying to import multiple users to AD

    Hey guys, im new to this and i just tryed to test out an import file..
    i have this code:

    Code:
     
    objectClass,DN,FirstName,samAccountName
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user1,user1
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user2,user2
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user3,user3
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user4,user4
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user5,user5
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user6,user6
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user7,user7
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user8,user8
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user9,user9
    user,"CN=testuser,OU=Users,DC=shlomi,DC=com",user10,user10
    i also tryed to change the CN to be same like samaccountname.. but im getting that error:

    i.imgur.com/hsjCC.jpg

    add http since i cannot post links

  • #2
    Re: Error when trying to import multiple users to AD

    what command are you using with this file?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Error when trying to import multiple users to AD

      csvde -i -f C:\user.csv

      Comment


      • #4
        Re: Error when trying to import multiple users to AD

        could you try running with the log file option (as given in your error - reposted with live link)
        http://i.imgur.com/hsjCC.jpg
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment


        • #5
          Re: Error when trying to import multiple users to AD

          log 1:

          Invalid number of attributes in input file.
          Syntax error on line 2
          An error has occurred in the program

          log 2:

          Connecting to "(null)"
          Logging in as current user using SSPI
          Importing directory from file "C:\user.csv"
          Loading entries
          Invalid number of attributes in input file.
          Syntax error on line 2
          0 entries modified successfully.
          An error has occurred in the program

          Comment


          • #6
            Re: Error when trying to import multiple users to AD

            Review this article and see if it helps?
            http://www.computerperformance.co.uk...CSVDE_Bulk.htm
            Tom Jones
            MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
            PhD, MSc, FIAP, MIITT
            IT Trainer / Consultant
            Ossian Ltd
            Scotland

            ** Remember to give credit where credit is due and leave reputation points where appropriate **

            Comment


            • #7
              Re: Error when trying to import multiple users to AD

              "invalid number of attributes in input file"
              you don't have enough information in there.


              also - your users can't all have the same CN..

              dopes this help ?
              http://www.computerperformance.co.uk...CSVDE_Bulk.htm
              Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

              Comment


              • #8
                Re: Error when trying to import multiple users to AD

                Originally posted by tehcamel View Post
                Great minds think alike - see one post above
                Tom Jones
                MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                PhD, MSc, FIAP, MIITT
                IT Trainer / Consultant
                Ossian Ltd
                Scotland

                ** Remember to give credit where credit is due and leave reputation points where appropriate **

                Comment


                • #9
                  Re: Error when trying to import multiple users to AD

                  sorry.. I've got 'ignore" set on all your posts :P
                  Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

                  Comment


                  • #10
                    Re: Error when trying to import multiple users to AD

                    No worries - I'll just do the same
                    Tom Jones
                    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                    PhD, MSc, FIAP, MIITT
                    IT Trainer / Consultant
                    Ossian Ltd
                    Scotland

                    ** Remember to give credit where credit is due and leave reputation points where appropriate **

                    Comment

                    Working...
                    X