Тёмный

Creating AD Users from CSV with Powershell | ServerAcademy.com 

Server Academy
Подписаться 78 тыс.
Просмотров 117 тыс.
50% 1

Create a FREE Server Academy account and start learning System Administration with our courses and hands-on IT labs: www.serveracademy.com/?...
Creating AD Users from CSV with Powershell - Please like, comment and subscribe =)
In this video you are going to learn how to create Active Directory user accounts based on a CSV file with Powershell.

Опубликовано:

 

12 май 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 143   
@Turco949
@Turco949 5 лет назад
I needed a refresh as it has been a long while since I have created a script using PowerShell and this is exactly the type of video I needed to get me rolling again. Much appreciated!
@Aehaze
@Aehaze 3 года назад
I got a job interview and this was part of it. Your video has been easily the most helpful video I have come across for people that have never coded a powershell script. Thank you for the help.
@Raytrace3Dee
@Raytrace3Dee 2 года назад
Great Script and Demo - I will note that when we do it for the first time it is not as interactive as yours and the variables do not prepopulate, but just plug thru and it all works - thank you for this.
@LucasRafael-iw7zj
@LucasRafael-iw7zj 2 года назад
Man i have to say THANK YOU !!!! there are a lot of tutorials but this one ... I really enjoyed how you describe each step from the beggining to the end, thank you so much !
@khosrowjalali7898
@khosrowjalali7898 10 месяцев назад
Paul Hill , You are a Legend. This has been one of the most valueable pieces of resources available on RU-vid. I followed your Instructions in the Vid and created a List of 105 Employees for a Company and it placed all the respective Users in their OU's and DC. I bow to your Superior Knowledge and Skills.
@marlowe8851
@marlowe8851 5 лет назад
The tutorial is smooth and understandable, thank you for not making shortcuts, easy to understand especially for newbies like me, again Thank you.
@azzaf5
@azzaf5 5 лет назад
Please do more Powershell videos. This is the most clear precise and well don't tutorial i have seen. Thank you for creating it.
@ServerAcademy
@ServerAcademy 5 лет назад
I'm actually making a powershell course!
@MrAlazawi
@MrAlazawi 5 лет назад
@@ServerAcademy how can we see your course? your way of teaching is outstanding!
@ServerAcademy
@ServerAcademy 5 лет назад
@@MrAlazawi thanks! www.instructorpaul.com/courses
@moshenitzani9558
@moshenitzani9558 5 лет назад
Totally agree with azzaf5 This is clear and to the point tutorial better than most, plus your voice is reassuring and relaxed.
@ithelpdeskguy3920
@ithelpdeskguy3920 Год назад
Everytime I want to refresh my knowledge. I always comeback to watch your videos
@HugoCorreiaFoo
@HugoCorreiaFoo 2 года назад
Simple and very well explained! I think I'll enroll on the training just for fun!
@optimus
@optimus 2 года назад
I'm excited to try this out. Onboarding new users is so annoying, and I feel this would definitely speed up the process!
@itmall8325
@itmall8325 4 года назад
Well done, I have used this a couple years ago and just found it again and wanted to like.
@spitfirecry
@spitfirecry 5 лет назад
Thank you for this Video. This really does help and it was explained very clear and precise. Looking forward on the next video for PowerShell.
@geraldwashington6026
@geraldwashington6026 6 лет назад
Excellent training tool, making me look like a star.......thanks
@kalamonde
@kalamonde 6 лет назад
Very handy, and as an added bonus you sound just like Kyle Gass. Simply soothing!
@ServerAcademy
@ServerAcademy 6 лет назад
Thanks lol =)
@bikkster
@bikkster 5 лет назад
Actually he sounds like Ryan Howard from the office. Great stuff Mr Instructor.
@heraklesfarnese960
@heraklesfarnese960 3 года назад
Need to create about 200 users. This is gonna make things alot easier. ;-) Thank!
@patrickpruneau5424
@patrickpruneau5424 4 года назад
Great tutorial. The application of the ForEach cmdlet finally makes sense to me!
@max31505
@max31505 5 лет назад
you are really good for a teacher , thanks ,you change my prospective about power she'll
@andreslopez180
@andreslopez180 4 года назад
Good Video sir I'm Studing for MCSA and it this video help me a lot.
@siamakmojdeh7078
@siamakmojdeh7078 Год назад
Thank you so much Paul for creating the video. it is a great presentation. Great Job!!!
@gauravs3985
@gauravs3985 6 лет назад
Thanks for showing it step by step👍
@jenn22588
@jenn22588 7 лет назад
Thank you so much! This saved me hours of work. This is the only code that worked for me!
@ServerAcademy
@ServerAcademy 6 лет назад
That's awesome!
@Aixalld
@Aixalld 2 года назад
thank you, great video, been looking for something like this for a long time, and you make it very easy to follow,
@prkreddy8602
@prkreddy8602 5 лет назад
Really nice video. Easy to understand.
@SigurdurKristofersson
@SigurdurKristofersson 4 года назад
Vow, great video. Helped me a lot, thank you.
@acsgdo02
@acsgdo02 5 лет назад
very empowering thank you so much !!
@beerzo
@beerzo 5 лет назад
Fantastic video. Nice and clear.
@raviparker
@raviparker Год назад
Wish to learn from you. A great explanation.
@xepgx3773
@xepgx3773 2 года назад
Awesome video, you helped me a bunch!
@talibe2023
@talibe2023 5 лет назад
Thank you! it's very help me.
@reddrexler
@reddrexler 5 лет назад
Hello Paul, Thanks for the video when I run the script I get WARNING: One or more headers were not specified. Default names starting with "H" have been used in place of any missing headers. any idea what I'm doing wrong?
@connoisseurofcookies2047
@connoisseurofcookies2047 Год назад
Great video, helped me a lot
@jessiewhite433
@jessiewhite433 5 лет назад
How would you do this if the CSV file you are using doesn't have any headers? As in, if it was just a list of first names and last names but no headers to differentiate them. How would you create those users without the headers with their proper names? And some of the users don't have a last name at all, so how would I make the script skip those names? It all seems so impossible to me at this point..
@IC4nia
@IC4nia 4 года назад
Keep 'em up ! Thanks
@alexneri9300
@alexneri9300 3 года назад
thanks you save my life!
@ClevelandEscape
@ClevelandEscape Год назад
Amazing video thanks !!!!
@sergeysergeyi5401
@sergeysergeyi5401 3 года назад
Большое спасибо. Все работает. Допилю скрипт под свои нужды и на работе буду пинать... Ты крут
@sabhawe
@sabhawe 6 лет назад
Please help me adding upn as it doesn’t show in the user property. Also how to add the email as well. So for the hassle I’m new to this. In fact I have been trying to do this for a while I wasn’t able till I came a cross your video. So thank you very much
@cgq6932
@cgq6932 2 года назад
Great training video. I have one question though. Would it be possible to also batch upload of user information such Member of a group that has been created in the active directory? Browsed through the list of commands within the New-ADUser but couldn't find one that could be used. Thanks
@jeffherdzina6716
@jeffherdzina6716 5 лет назад
Thank you, thank you, thank you !!!
@alexandrzorenco4418
@alexandrzorenco4418 5 лет назад
Hi thanks for the video, it was really informative. Could you also explain how to make a random generated password for each individual?
@tenzinloeden
@tenzinloeden 6 лет назад
thank you so much!!
@MrAlazawi
@MrAlazawi 5 лет назад
this is amazing !
@glenisefa7148
@glenisefa7148 3 года назад
What if there are some empty cells in the CSV file? i have created something similar but i get an error when trying to add OtherAttributes like extensionattributes. For example some users have some attributes that the other doesnt have, have can i make this work automatically? When the cell is empy i can say to continue to create and if its not add the attribute.
@kimsungajashi3371
@kimsungajashi3371 4 года назад
best tutorial ever
@coolvidsz
@coolvidsz 4 года назад
So far the script is working, but when I echo the "$fname" part, I get an output of a bunch of blank spaces. Is my csv formatted in a weird way or is there something I am missing?
@pa1089
@pa1089 5 лет назад
Hello Paul. Thank you for the awesome video. Really helpful. Do you mind posting the powershell script as i could not find it here? Thank you
@raphaelcwcable
@raphaelcwcable 2 года назад
Hi, Thanks for your video. Is it possible to add an incremental number behind a username while there is a same username in the AD? such as if I need to create three users and their username are testdata. Can we edit them to testdata then testdata1, testdata2 by PowerShell?
@albert079u3
@albert079u3 10 месяцев назад
this video is terrific,I like it.
@giaitrit
@giaitrit 3 года назад
Thanks you very much!
@letsknowit3377
@letsknowit3377 4 года назад
Thank-you so much for this tutorial.... This helped me alot 👌
@ServerAcademy
@ServerAcademy 4 года назад
Awesome!!
@letsknowit3377
@letsknowit3377 4 года назад
How can i add user login variable and define it
@Michael_G19
@Michael_G19 3 года назад
How can I add the same users to a security group in specific using the same csv file and script?
@NithinJosephanchal
@NithinJosephanchal 6 лет назад
It's not showing the upn appropriately..rest looks fine..is it possible to add auto generated password?
@stormflame829
@stormflame829 5 лет назад
On PS it doesn't recognize $Filepath help?
@Narmatha-pc1pe
@Narmatha-pc1pe 4 года назад
If I have to create 500 temporary users, must I type out the info for the 500 ppl in excel?
@ekowlloyd
@ekowlloyd 5 лет назад
hi, hopefully i'll get a response to this, first of all thanks for taking the time to make this video, i'm on my first day at my internship and my task is to create AD users with corresponding email and all via powershell. too bad i can't find your script to download and edit, because when using my script, the powershell doesn't return the first names or last names like yours did in the video, eventhough i don't get any errors either? do you have any idea what i could be doing wrong? also kindly let me know how to include email addresses for the users. thank you
@jhedsaldavia5684
@jhedsaldavia5684 Год назад
I didn't find the attached resources. This is very informative compared to other tutorial video
@MrMCPMatt
@MrMCPMatt 2 года назад
Great tutorial, one question, where you setup the usernames (UserPrincipalName) how would I do it for first initial surname. E.g. jbloggs ?
@mrama405
@mrama405 Год назад
Is there a way to add users to security groups during this process using the same script? also attributes like msRTCSIP-PrimaryUserAddress and ProxyAddress for each user?
@sfaryu
@sfaryu 5 лет назад
Where's the link to download the script?
@JayByrdSki
@JayByrdSki 4 года назад
GREAT Informative video. Where can i find the attachment?
@rileycastro
@rileycastro 5 лет назад
What about just updating AD with a CSV?
@jamesnkk
@jamesnkk 2 года назад
Hi, can this be done on a client pc that connected to a domain
@scotimus
@scotimus 5 лет назад
This is awesome. Explained so well for a scripting newbie, and exactly what I need for an upcoming project. One question, is there a way in this process to have the email address created, but hidden from the GAL? I want to create a big batch of users but not actually have them viewable for another few weeks. thanks!
@ServerAcademy
@ServerAcademy 2 года назад
I know I'm late here but just create them as disabled I believe.
@kittipongsuraphan7510
@kittipongsuraphan7510 6 лет назад
thank you
@ForJonGabeBen
@ForJonGabeBen 4 года назад
Excellent
@shabtayemanuilov8854
@shabtayemanuilov8854 2 года назад
Good video!
@gibson7654
@gibson7654 Год назад
Thanks for this. I am getting an error when I run my code. Powershell does not recognize parameters on line 23. Can you help?
@Kr00lplatinum
@Kr00lplatinum 2 года назад
When I create an account in AD. It shows the name as lastname, firstname. How do if fix this in the script? I need a comma and a space. The GUI tools creates the comma automatically.
@Chris-ze3ic
@Chris-ze3ic 5 лет назад
Hi , I am currently trying to import multiple users to multiple different groups via powershell. The formatting of the CSV is: Group Name Members grp1   user 1 , user 2 , user 3 grp 2   user 5 , user 1 , user 4 grp 3    user 6 , user 5 , user 3 Some of the users that exist within the CSV do not currently exist so i have tried several different methods to import this but keep on getting errors import-csv "C:\Users\sys.c\Desktop\adgroups123.csv" | ForEach-Object {add-ADGroupMember -Identity $_.groupname -Members $_.username} is what im currently using, although i have tried other ways of trying to achieve this. I believe the issue that i am currently having is i need to do a -split(;) as the users are within the same cell , per row. I am therefore if i need to edit this or start over. I was wondering if anyone could help me with this as. I am unsure if i need to edit my csv to a different format or if powershell is capable of doing this within this format. ( i could not see anyone else trying this format on forums) Thanks!
@srenlumholtz6242
@srenlumholtz6242 4 года назад
Thanks. Helped a lot. However I have a question: How do you get the OU path if you didn't have the GUI (Where you just copy it from attribute editor)?
@ServerAcademy
@ServerAcademy 4 года назад
You would use PowerShell: Get-OrganizationalUnit "OU Name" | Format-Table Name, DistinguishedName docs.microsoft.com/en-us/powershell/module/exchange/get-organizationalunit
@amccristovao
@amccristovao 2 года назад
Hi, thanks for ur very good video, I have a question, wen i try to import my OUpath is OU=Alidata,OU=Empresas,DC=LIDERMOBILE,DC=LOCAL because is comma separated doesnt import correctly, how can i correct this?
@kehboxtv2494
@kehboxtv2494 3 года назад
Thank You
@duncanfirth
@duncanfirth 6 лет назад
Hey Paul what editor are you using to edit the powershell script?
@ServerAcademy
@ServerAcademy 6 лет назад
I am using the Powershell ISE. Comes with your Windows install. Just hit the Windows button and search for "Powershell ISE"
@maoqing82
@maoqing82 3 года назад
able to provide the script and whether isit able to add SamAccountName and MemberOf?
@brandoncutshall1091
@brandoncutshall1091 6 лет назад
Hi Paul, great video. I have a question regarding the $fname, $lname, etc. are those attributes pulled from ADSI edit? would $surname and $givenname work the same? would $SamAccountName and $userPrincipalName attributes populate as long as the CSV has columns for that?
@ServerAcademy
@ServerAcademy 6 лет назад
Hey - thanks! No the $fname was a variable we declared with Powershell. The values for these variables were pulled from the CSV (excel spreadsheet) we used in our example.
@brandoncutshall1091
@brandoncutshall1091 6 лет назад
i understand now! i created a script built off your example with a few more attributes to fill, i get it now, thank you Paul. Do you have any How-Tos for updating AD users? For example bulk update to addresses or phone numbers for accounts that are already established.
@CharlesLouis_inspire_me
@CharlesLouis_inspire_me 3 года назад
Hi, where can I download the script please? Thanks in advance
@dis1guy
@dis1guy 2 года назад
How do I have access to test AD?
@ainsalleh
@ainsalleh 3 года назад
u dont use jtitle?
@andreasMou123
@andreasMou123 6 лет назад
- Why can't i get it to work from a excel file?? No matter if i take the comma seperated .csv filetype, the script just dosen't work. It works perfectly fine in notepad if i just manually seperate values with commas, but that's not what i wanted.
@ServerAcademy
@ServerAcademy 6 лет назад
If you use excel, you just need to export it to a CSV. You can do that directly from the excel file.
@duncanfirth
@duncanfirth 6 лет назад
Paul do you have a powershell course?
@ServerAcademy
@ServerAcademy 6 лет назад
Hey Duncan, I am developing one right now! It is probably 2 months away from being done.
@kevinportillo1971
@kevinportillo1971 5 лет назад
*_Not all capes wear heroes!!!_* :D
@sleepy7347
@sleepy7347 5 лет назад
nice
@lena5242
@lena5242 5 лет назад
Господи, спасибо!
@saurabhgupta9095
@saurabhgupta9095 4 года назад
How would you make sure that all the users created from this script are unique....? I mean is any user already exsist with the same user name then...
@ServerAcademy
@ServerAcademy 4 года назад
You need to write a function that will return $true or $false after searching for the username you want to create. That function should also suggest alternative names (appending a 1 or 2 at the end of the username)
@mikeset116
@mikeset116 5 лет назад
my thing is how did you know to use read-host and use other variables to solve this problem.?
@ServerAcademy
@ServerAcademy 5 лет назад
Get-command, or get-help, or get-command | select-string "csv"
@PBAdose
@PBAdose Год назад
Does this still work?
@jacobchurch5536
@jacobchurch5536 4 месяца назад
how do i get the code?
@hrmf32
@hrmf32 4 года назад
pastebin code? can share code?
@nathanvanerp5897
@nathanvanerp5897 4 года назад
where are the downloadable scripts?
@sabhawe
@sabhawe 6 лет назад
Thank you very much💐 What about the user principle name! How can I add that please?
@ServerAcademy
@ServerAcademy 6 лет назад
sabhawe yeah you need to specify the user principal I totally forgot to add that. It's an option you just add.
@sabhawe
@sabhawe 6 лет назад
Instructor Paul: Hi Paul thank you for this great Video. This is the first time I was able to do this I tried it few time it never worked. Thank you again. Would you show me how to add an email for bulk users. and also UserPrincipalName as well please☺️
@ekowlloyd
@ekowlloyd 5 лет назад
@@sabhawe actually this is exactly what i came here for but i noticed he hasn't responded to your question or those questions of those asking for the script. have u however maaged to figure that out? i also need help with adding email for bulk users
@adishimon9360
@adishimon9360 6 лет назад
Hello, is there a problem doing this on vmware 12? I am trying to do it step by step as you did on the video, however it doesn't do anything even not displaying the first name users do you know about this problem in vmware 12? is there a way to fix it?
@ServerAcademy
@ServerAcademy 6 лет назад
Run the script as an administrator
@adishimon9360
@adishimon9360 6 лет назад
already did, still nothing it like not doing anything and just return me to the line command
@ServerAcademy
@ServerAcademy 6 лет назад
Are you able to import the AD module? I am not sure what you mean by vmware 12 - it should be run on Windows Server
@adishimon9360
@adishimon9360 6 лет назад
it is windows server 2016 installed on vmware machine
@brandoncutshall1091
@brandoncutshall1091 6 лет назад
i had to set my execution policy to unrestricted
@TheStevenWhiting
@TheStevenWhiting Год назад
A shame this didn't continue as it's the clearest guide for powershell.
@mantid83
@mantid83 5 лет назад
Where can i download the script?
@kT2015N
@kT2015N 4 года назад
Link is in his first tutorial www.serveracademy.com/tutoria...
@spectral_pixel
@spectral_pixel Год назад
17:37 may i get the link
@ajaygaikwad8087
@ajaygaikwad8087 Год назад
can you please share the .csv file
@loganafrica
@loganafrica 4 года назад
good video, however a link in the description to the script, would've gotten you a subscribe and a like :)
@thatoneofmany
@thatoneofmany 4 года назад
So the , are clashing all around and I found a bug in Excell that changes , into ; Shit Aint Working...
@stevenhersh9245
@stevenhersh9245 7 месяцев назад
Beware: The attribute userprincipalname should be followed with the full user principal name rather than the pre-Windwos 200 username Beware: the script is populating a mail address field but not creating the mail. For those who still use Exchange on premises, take note and run a script of similar complexity in the Exchange administrative console to create the mailboxes. For those who use Microsoft 365, the process is more tedious. Beware: the script has no error checking. While the case of two users with the same first name and last name is rare, it can happen. If so, no account will be created. In the real world, we want to catch the errors and fix them.
@ifechiugwueze7520
@ifechiugwueze7520 Год назад
I cant see the script here
Далее
How to Create AD Users from CSV
22:41
Просмотров 27 тыс.
Active Directory automation with PowerShell
1:34:38
Просмотров 134 тыс.
This or That 🛍️
00:52
Просмотров 6 млн
D3 BMW XM LABEL Король.
31:52
Просмотров 587 тыс.
Copy, Move, Delete files with PowerShell
17:01
Просмотров 173 тыс.
How to create Active Directory Users with Powershell
9:57
I've been using Redis wrong this whole time...
20:53
Просмотров 340 тыс.
Manage Your Dotfiles with Home Manager!
32:06
Просмотров 49 тыс.
This or That 🛍️
00:52
Просмотров 6 млн