Easy Import CSV Users into Active Directory

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Windows Server 2008 R2 Active Directory user import from a CSV delimited file. Create users in Active Directory the EASY way with a delimited file you create in Excel and Save As... CSV.
    Examples here:
    ------------test.CSV FILE BEGIN--------------
    GivenName,Surname,Name,DisplayName,SamAccountName
    Tim,Perry,Tim Perry,Tim Perry,TPerry
    Larry,Cooper,Larry Cooper,Larry Cooper,LCooper
    ------------test.CSV FILE END------------
    ---------- PowerShell Cmd BEGIN ----------
    Import-Csv .\test.csv | New-ADUser -Enabled $True -AccountPassword (ConvertTo-SecureString Pass123 -AsPlainText -force) -City Fennimore -State WI
    ---------- PowerShell Cmd END ----------

Комментарии • 51

  • @MikeStuarttechnical
    @MikeStuarttechnical 9 лет назад

    Awesome walk through, I'm taking a class where I had to do this and you just explained it so much better than the book did, thank you!

  • @DwayneKSmith876
    @DwayneKSmith876 8 лет назад +1

    Thank you very much for this. I tried 2 scripts that i found but none of them worked. This worked right away

  • @jsteve3s
    @jsteve3s 8 лет назад +1

    Just saved about 10 hours of work thanks!!!

  • @frasierbeast
    @frasierbeast 4 года назад

    Thank you for doing this video! Super easy to follow and super useful tool!

  • @eamongwalsh
    @eamongwalsh 10 лет назад +1

    Really good, thanks for taking the time to put this up! Worked a treat!

  • @mrholverson
    @mrholverson  10 лет назад +6

    Thanks Michael Raj but my goal is to not use 3rd party apps when the tools are included with Windows.

  • @Shelby-GT350-R
    @Shelby-GT350-R 7 лет назад

    Thanks Mr Holverson. Worked perfect. Thank you.

  • @Ovskitovski
    @Ovskitovski 9 лет назад

    Thank you, very useful as base to get more complicated import scripts.

  • @eddeig
    @eddeig 9 лет назад +1

    Great Video. Just saved me spending money on a tool!

  • @DeepDiver68
    @DeepDiver68 8 лет назад +1

    Super, thanks a lot. You save my day.

  • @misubear
    @misubear 6 лет назад

    Good Job! Simple and works well.

  • @princeanon
    @princeanon 9 лет назад

    Thanks a lot. That was very useful.

  • @vishi45
    @vishi45 9 лет назад

    this video is very helpfull guys trust me

  • @anas90t
    @anas90t 3 года назад

    is there a way to update an existing contacts? i got like 1000 contacts many of them have no Tel. , and i have all the numbers in an excel file.

  • @antoniojf2010
    @antoniojf2010 4 года назад

    Can you help with a issue?...
    I need to import only the email information of users that already exist into my active directory (Windows 2106 Server). How can I do that? Thanks.

  • @Knoxlogic
    @Knoxlogic 8 лет назад

    @mrholverson - I just ran across your video. What I am looking for is we have a company HR program that exports out an Excel spreadsheet every day with the same headers. (lastname, firstname, employee_status, address, department, supervisor, etc...) I would like to have a script run against those headers and fields and update our AD. So when the HR lady adds a new employee or the department changes or etc... the script will auto update/sync with AD.
    (does that make sense) - Will your script do that by simply adding or changing a few things around? Any help would be appreciated! thanks!

  • @danielalt7508
    @danielalt7508 6 лет назад

    I was thinking of doing foreach name in the list, then create account individually for every one and add a random password and then save those passwords and and names to another file and then you would have random passswords for all users instead of one same for all users.

  • @AB_youtube
    @AB_youtube 7 лет назад

    Thanks for the video. Which command do i use if i want to import the attributes and also set users My documents drive to a specific folder on another server?

  • @theshipcairns
    @theshipcairns 5 лет назад

    sweet thanks dude

  • @davehoyt5697
    @davehoyt5697 7 лет назад

    The problem i have is; using 2016 i don't know of all the proper field names to use to import. Example after an hour of looking around i found using the word PATH for the proper Container while creating the user. Most example used DN but that did NOT WORK in 2016. I want to add these users to groups and provide info for profile paths, and home folder locations, etc... where does that info exist???

  • @otto9800
    @otto9800 6 лет назад

    vry ncie, tanks for teh god gude!

  • @AravindaRao
    @AravindaRao 9 лет назад

    Thanks for the share

  • @TheAmazeer
    @TheAmazeer 7 лет назад

    we use import from and export to ...basically you export from csv file to active directory..

  • @TariqueEastman
    @TariqueEastman 8 лет назад

    Getting an error
    the input object cannot be bound because it did not contain the information required to bind all mandatory parameters

    • @TariqueEastman
      @TariqueEastman 8 лет назад

      +Tarique Eastman Ok so I got it to work. Somehow when do | New-ADUser -Enabled $True it throws the error but if i declare the password then set it to enabled it works. Thanks for the guide though really cut work in half.

  • @roughryder5
    @roughryder5 9 лет назад

    What if I want to add users in different child OU's within a parent OU? How does the command differ?

  • @AndreBarbosaPC
    @AndreBarbosaPC 9 лет назад

    Can you use the same approach for Computers? If so how?

  • @hennessy6996
    @hennessy6996 4 года назад

    Hi,
    Is it possible to import the list of users with a User Principal Name instead of the samAccountName ?

  • @rewender5310
    @rewender5310 3 года назад

    with wich command he changed to the script file?

  • @joelhume
    @joelhume 8 лет назад

    Nice video

  • @Roman-tz9qz
    @Roman-tz9qz 10 лет назад

    good !!

  • @paolofanciullini1905
    @paolofanciullini1905 3 года назад

    how can I force the password change at first login?

  • @bereketzewdu3787
    @bereketzewdu3787 2 года назад

    how to import to a specific OU

  • @joaodofrango
    @joaodofrango 9 лет назад

    Good Player

  • @AnandaDwiAe
    @AnandaDwiAe 6 лет назад

    Does this work for windows server 2016?

  • @gsb005
    @gsb005 8 лет назад

    Good script, but very important, can you add the "groups" necessary as well?

    • @mrholverson
      @mrholverson  8 лет назад

      +gsb005 ADD this to the script: ForEach-Object {Add-ADGroupMember -identity 'CN=ASH Student Users,OU=Student Users,OU=User Groups,OU=Groups,OU=ASH,OU=Establishments,DC=Ashdown,DC=internal'

    • @davehoyt5697
      @davehoyt5697 7 лет назад

      not sure how to use this with the import-csv? I'm using Import-Csv .\unames.csv | New-ADUser -Enabled $True -AccountPassword (ConvertTo-SecureString Password123 -AsPlainText -force). so is this command appended to this command?

  • @iamunassar
    @iamunassar 9 лет назад

    "user logon name" empty! ... u should add the UPN inside the CSV file first.

    • @Lazier23
      @Lazier23 7 лет назад

      Ibro can you show me how to do it? thanks

  • @nstavros1975
    @nstavros1975 10 лет назад +1

    Can we put user's password in the cvs file.

    • @mrholverson
      @mrholverson  10 лет назад

      nstavros1975 I haven't had good luck with this. The problem is the password has to be encrypted.

  • @jonathanlacava4672
    @jonathanlacava4672 8 лет назад +1

    Does this work with Server 2012?

    • @mrholverson
      @mrholverson  8 лет назад

      +Jonathan LaCava YES

    • @tonylachick9129
      @tonylachick9129 8 лет назад +1

      +Jonathan LaCava The only part it is missing for 2012 is that it does not correctly set the User Logon Name in the Accounts tab.Also, you need to run PShell as Admin.

  • @MarioDurandS
    @MarioDurandS 9 лет назад

    What about groups? Is there a video?

    • @gameacctskorphalo5338
      @gameacctskorphalo5338 9 лет назад +1

      That's a good question. ..be nice to automate the groups and DLs. Or maybe there's a command to copy an account? I'm just starting to research this.

  • @st4lin
    @st4lin 8 лет назад

    perf

  • @dharmaputra7394
    @dharmaputra7394 7 лет назад

    Can you help me? i have file csv but i can't import my file cause my file is diferrent with your video. This my file prnt.sc/detw9z