How to Setup a Basic Home Lab Running Active Directory (Oracle VirtualBox) | Add Users w/PowerShell
HTML-код
- Опубликовано: 3 янв 2021
- 🔒 Hands-On Cybersecurity Course + INTERNSHIP 🔒
joshmadakor.tech/cyber
-------------------
🖥️ Transform Yourself and Break into IT in ~3 Months with my Hands-On Practical Course! 🖥
coursecareers.com/explore/it/...
-----------------
Oracle VirtualBox: www.virtualbox.org/wiki/Downl...
Server 2019 ISO: www.microsoft.com/en-us/evalc...
Windows 10 ISO: www.microsoft.com/en-us/softw...
Create Accounts Script: github.com/joshmadakor1/AD_PS...
-------------------
Patreon (Discord):
/ joshmadakor
🖥 Break into IT in ~3 Months with my Hands-On Practical Course! 🖥
coursecareers.com/explore/it/ref/18242/
What did you use to make your network topology diagram software wise?
@@joshcoolblueee I think I used google drawings, but I’m in bed right now so hard to check :p
Subscribe
@@joshcoolblueee loke
@JoshMadakor
Thank you brother for this short course :). Could you plz explain to me why there’s no DNS specified as it appears in your course @ 54:51?
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::d857:b8b6:81c2:f060%9
Autoconfiguration IPv4 Address. . : 169.254.240.96
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
For anyone trying to retain the info while saving time:
install the server and configure it with the guest additions. Shut it down and immediately clone it. Follow the video, and then delete the original VM fully. Before you do it again, clone the VM again. Follow the video but do it slowly, with a word doc open, and type out, step by step everything that happens. Write your own instructions, based on the video. Get it right and working - delete that VM. use the raw clone again. Now do the whole thing with out the video, just following your notes. etc. Always have the clone ready to go and do it from scratch a few times.
This is an excellent comment!!! I actually do this myself and is how I taught myself a lot of SCCM and Cisco stuff haha
@@JoshMadakor Thanks, and thanks for the video! It was really helpful for getting hands on experience using windows server/active directory. I definitely feel comfortable talking on this subject now should it come up in an interview etc.
Keep your mistakes in your videos like you did here. That's a lesson within a lesson when you fix something and show how you did it. Awesome video. 👌
Thanks so much! haha, glad you could appreciate the mistakes :P. I appreciate it! Thank you for watching :)
@@JoshMadakor Hello, when click on the link to download win 10 I don't get the iso file link like in the video
@@LuisRivera-ev9vbyeahh!! i was also facing the same problem then I downloaded it in my phone then shared it to system
Thanks for another amazing tutorial, man! Here's the only differences I found when running this on my own computer (August 2022).
1) Different Windows ISO (3:44) - I was redirected to a Windows 10 Enterprise ISO instead of the standard version used in this video.
2) Slightly different Windows 10 installation (49:07) - Windows 10 Enterprise kicked me straight to the "log in with a Microsoft account" screen. I never saw the "Let's connect to a network" screen as demonstrated in the tutorial, but it's an easy fix. Just click on the "Join via Domain" (or something like that, can't remember the exact wording) and then you get around both 1) the Windows sign-on and 2) telling Windows that "I don't have internet" at startup.
The feeling of something not turning out correctly the first time leading to have to trouble shoot the issue , solving it, is a great feeling. Brings confidence knowing that when i make an oops or that there is an oops in the real world I can solve it right away. Thank you.
Thank you so much, Josh! I followed along and everything went smoothly. This was my first time setting up a home lab for practicing Active Directory and I can not thank you enough for providing such clear instructions. Great job!
This was absolutely amazing. It took me a little longer than I expected to play around with it but I learned so much in doing so. Your breakdown of the PowerShell portion was also so extremely helpful in understanding. Truly so grateful I stumbled across your channel. I can't wait to try more!
Hey whats your IG?
This is by far the most thorough and easy to follow AD/HomeLab setup that I have come across. Other videos miss steps or something is out of date, but this video is top tier. Thank you for all of your content! I look forward to watching and learning from your videos in the future.
Hey LaTeayrra, super glad you found it to be good/accurate. I really tried with this one lol. I know what you mean about labs missing steps and stuff...It's really troublesome lol.
Appreciate you watching, and I appreciate the kindness!!
I really loved the way you explained the whole concept in a simple and concise manner. I am coming back to learn from you.
Great tutorial. I really like the fact you go through each line of code in PowerShell to explain what is happening. Helps me break it down to smaller chunks and remember what each part is doing.
This is probably my most favorite home lab tutorial that I have watched so far! Hope to see more videos like this from you one day!
Thanks!
Thanks EuroBean! I will def do some more in the future once my time frees up, haha
Thanks for making this Josh! Got everything setup and took snapshots before I go breaking everything trying to learn what it all does lol. Glad to have someone as thorough as you making content like this!
I love you kept the troubleshooting in the video. That's awesome, man. Subbed, commented, and liked. Running this whole setup now.
I would LOVE more home lab tutorials and showing more of the functionalities of e.g. WSUS, admin center, GPOs, powershell. I looked through multiple tutorials and yours was the absolute best.
Just finished this lab. Like a few other comments it took me a bit longer than I thought (mainly because I only gave my server 12GB HDD and it wouldn't install ADDS so I had to start over), but this is very useful information. Really helps to understand how AD works. Most AD environments are already set up and configured. Understanding the nuts and bolts of HOW an AD environment is set up is going to be very useful when I interview.
Thankyou so much for including the diagram at 0:42 I'm a learner that likes to see things in a diagram format just for my mind to understand how things work. Definitely hit the like button when I saw that.
This was awesome. Sat through it to the end. I already know I will be visiting this again once I get myself a faster device. Once again, Love it!!
This HomeLab is absolutely FANTASTIC !!! I love when there are some unexpected issues and are resolved this is a Plus for troubleshooting 2x1. Thank you so much to explaining power shell script for creating NT account. You are the Men!!!
Thank you so much for this video! I tried other videos to help with setting up Active Directory in a Home lab and yours was the best one! Trying to learn these skills through self study is possible with people like you. It is very much appreciated!
Thank you so much! I'm glad the video was useful :) good luck with your studies ☺️
Fantastic tutorial. I just followed along and everything's working great. For whatever reason I always run into issues setting up the networking but with this everything was a breeze and just worked. Well spoken and great job. Thank you for sharing.
Went through it for the second time and got everything figured out! Great video and lab to follow along with. I appreciate your work.
🙇♂ - Patreon + Discord - 🙇♂
www.patreon.com/joshmadakor - Any support greatly appreciated!!
Josh, excellent tutorial. I LOVE the fact that you didn't edit out your mistakes- you showed the process of backtracking and resolving the issue. Again- well done. Thank you for doing all this.
I completely agree with this comment. 👍
This was truly fun to learn. I appreciate your time and effort in creating this type of content. Keep up the great work!
I did some studies on AD DS and Windows server some time ago and struggled a bit. But this video has really helped put all the pieces together for me and I definitely have a better understanding of it. Thanks very much for going to the trouble of making it. Liked and subscribed :)
I'm super glad it was useful to you, seriously! Thanks so much for watching and taking the time to comment :)
Amazing work Josh! Thank you for your videos, they are very clear, easy and entertaining to follow. Ive worked on your Azure Sentinel video and now this one to prepare some experience for my CV.
Hey Herman, thanks for the kind words, and good job doing the labs! You’re def getting ahead by going out of your way to do stuff like that, hehe. Best of luck if you’re job hunting!
Amazing video, I tried following similar videos from other creators but yours was by far the most detailed and complete. Thanks for the hard work!
Thank you so much! Im glad it was useful and comprehensive lol. I know it's annoying when stuff is left out, so I tried to make it complete. Only drawback is it ended up being kind of long lol.
Great video, was able to follow every single step from start to finish and learned a lot about active directory and networking practically. Thank you for this video!
Hi Josh, I just wanted to say thanks for all you do. As a former teacher and career-changer, I find myself coming back to you for inspiration and functional advice. I'm working on creating a portfolio, and I just finished doing a write-up with screenshots replicating what you demonstrated here. I was helpful to write it out, because it forced me to slow down my thinking in order to explain what I was doing. I'm pretty sure what I wrote is mostly correct. At least now I can say that I now how to setup Server for Active Directory, etc., and show some evidence of it. Thanks again.
Hi, I'm a teacher and I'm transitioning into Cybersecurity. Great to see that other teachers are moving into Tech, it's gives me the motivation to push on. Thank you for this comment.
Thanks Josh!!! What an awesome time..took me half a day-but tons of fun!!! Learning at something so cool, is a blast. Would love to do this kind of stuff as a job!! Take care and Happy New Year!!
Hey Shadowop! Glad you enjoyed it. You kinda can do it as a job haha. Work in IT :P, probably slightly less fun though lol
Congrats Josh !! Love your videos, great content and great explanation of everything. Going to keep supporting by watching your tutorials
Great tutorial. Helped me overcome my lack of knowledge in how to set up a DC with all the features needed by AD DS. I do believe this will better prepare me for my new endeavor starting next week. Thanks, Josh! YOU'RE AWESOME!
Great video! I'm currently in a help desk role and this has been very helpful in better understanding the environment and setting up my own home lab to work towards a sysadmin position. Thank you!
Great! Glad it helped, and good luck with your studies :)
How's the sys admin journey going?
A tip for anyone watching that is having trouble with setting up the VirtualBox DC and its not giving you the proper options like in this video:
Please make sure VT-x is enabled in your system's BIOS. If it isnt, you will get really weird errors since your not letting your computer use the hardware to run the virtual machine properly. For example it was reading my computer as a 32bit machine when it wasnt and having kernal errors.
If you are unaware of how to do this, just turn off your computer, and when you press the power button to turn it back on just keep pressing F10 on your keyboard to bring up your system's BIOS. Under one of the security or configuration settings, it should give you an option to enable VTx, Virtualization Technology, or whatever variation your BIOS might refer to it as. Its all the same thing. My HP pc came with it disabled by default, so I thought this would be good information for the less advanced users.
Thank you so much. I'm going to pin this. I didn't want to include this in the video because it already reached an hour long lol..
@@JoshMadakor Haha no worries. Your vid is awesome and extremely easy to understand no matter the length, so I'd hate to see someone get discouraged and not finish it over something as simple as ticking a box in a hidden menu.
Im interviewing for a few IT help desk and technician positions starting next week, so hopefully this lab comes in handy for me lol
AMD bios/uefi >> Search [top of uefi] >> type "SVM" >> enable
I’ve ran into that before and I was kicking tires. Tips like yours are extremely helpful! Thank you 🙏!
@@AlexSanDiNero You got it! Also for an update, I did land a NOC Technician job at an MSP soon after I saw this video 10 months ago and now work Level 1/2 Helpdesk.
Wish all who see's this video luck in their career endeavors!
Thank you for the tutorial, this was a fun weekend project!
Thanks a lot Josh. This is by far the best hands-on tutorial.
Thank you for that look into your powershell script. I'm a beginner level python scripter and I've been meaning to get into powershell automation, looking over a working script like this is a great way to learn things.
Hey, glad you liked it! I think learning by seeing real-life stuff is incredibly useful so I’m glad that you had that experience haha! I’ll try to do some more like it. Thanks for the feedback :o)
Three years later and this lab has resolidified my understanding and knowledge of AD DC, VM's, Windows, and networking concepts. Just finished my lab and incorporating it to my GitHub. Thank you again Josh for the hands-on learning and tutorials as always! :)
By far the best instructional video I have watched regarding the set up of Active Directory and DHCP!! Thank you so much!!
Josh, I have followed your videos for a while, I am currently working on this to get my first cyber job while teaching myself to take the comptia security+ I felt like this was just as important to do while studying for the exam and trying to get a job. Thanks again
It's an important topic, haha! Thanks so much for watching and commenting, and bet of luck with your exam when you take it :)
i passed my security plus now working on building my projects thanks again josh!
Thanks Josh, landed my first help desk role and now I gotta get used to working in AD!
Congrats! You got the hard part outta the way :)
Thank you so much brother ! The overview in the beginning of this video is so important before diving in !!!
Awesome, that was extremely helpful. Thanks for taking the time to explain that script as well!
Thanks for the lab, very informative. Just got my A+ and Net+, gonna put this on my resume and hopefully get Sec+ soon
Awesome, sounds good!
goodluck man
This is a great video, thanks for the content. You mention doing a video on ip addressing, that would be awesome. Also I am currently taking a class on windows powershell, please consider doing some videos on scripting and automation. Thanks.
Thanks for the video! I hope to get into IT one day and have been building out my homelab, both physically and virtually, and this is a great start to getting AD set up for my VMs!
This tutorial was GREAAAAAAAAAAAAAAAAAATTTTTTTTTTTTTTTTTTTTTTTTTTTTT , I went from knowing nothing about Active Directory to having a decent understanding of it in this single tutorial. Keep up the good work!
Thanks a lot for this amazing lab. I used Vmware so the setting were a little annoying to follow but I completed my mini lab and will be adding this to my resume . I'll also be adding knowledge in powershell now since I can understand some scripts hahah..you rock!
Ayyyy, super glad to hear it, seriously! Sorry about VMware, I did have a hard time deciding on which platform to use lol. Good job overcoming it :) Also, thanks for watching and taking the time to comment!
Hi, I am unable to connect to my domain, for me it is showing localdomain, even I am using vmware, any tips?
I'm using vmware and everything was going well until the last 10 minutes when i tried connecting the client to the server. The network adapter connection is not the same as virtualbox. I can't get it to connect to dhcp. What settings did you choose for the network adapter?
Hi Josh,
Have you thought of continuing this lab? Maybe make a video on a specific office-like scenario? Really enjoyed this one. Looking forward to more. Cheers.
I haven't checked, but this would be a great idea.
I just completed this. By far the best guide i have seen! Thank you!
Seriously, you don’t know how helpfully was this video for me. Thanks for your content. Subscribed.
Thank you for the sub! I'm so glad I could help 🥺
For new people setting up lab, I would HIGHLY RECOMMEND setting network options to bridge. Otherwise, NAT normally has issues with private to private IP.
Absolutely! Either bridge or go with Josh's DC dhcp. That guy (NAT) took me 3days trying to fix connectivity between DC and client
I really enjoyed this however I keep running into issues at the end. I’m using VmWare workstation maybe that’s why but I can’t seem to get my windows 11 vm to connect to the server it either connects to my host pc or has no internet. VMware workstation free version doesn’t have the internal network option. But I thought it was still capable but idk
Hi Josh...great step-by-step tutorial!! I was able to successfully set up this Active Directory home lab on my laptop. After earning my CompTIA A+ certification, I'm looking for my first IT job after having been in retail management for years. Thought I would put what I've learned in CompTIA A+ into practice with a focus on Active Directory in the meantime. This lab should definitely do the trick! Thank you, thank you! You mentioned in the video that the lab could be used for subsequent videos specific to Active Directory. If there are additional videos, do you have links to those videos? My apologies if you've already answered this question several times in the comments lol. Thank you again for this great tutorial!!
I am from the same background as you. Onward to victory!
I just finished watching this video and I must admit is a top notch video and your engagement with the audience is second to none. Thank you for your help in this regards.
Hey Samuel, really appreciate the positive feedback, thank YOU! Glad it was helpful!
Hi Josh, thank you so much for the very detail walk through. I am reentering the Windows / AD environment and this is right on point for a very excellent refresher. Thank you and keep up the good work. I will continue to follow you.
Thanks!
Oh my gosh, it's my first time receiving a super thanks, thank you! Really appreciate it. Glad the lab was helpful :)
My computer can’t handle server 2019 period so I just have to watch along, nothing is working here.
Hi Josh, I found this video, worked my way through it, and got everything up and running. This was awesome!!!!
This was a cool lab. I just received my information technology support specialist certificate in December and I've been looking for ways to sharpen my skills. This was very helpful. Thank you sir.
I was going through the lab and I believe the Default Gateway you setup for DHCP scope is incorrect in the picture you uploaded for the network diagram.
I was having issues connecting CLIENT1 machine to internet and when running IPCONFIG I was pulling gateway 172.168.0.1
Got it working when I edited routing in the DC SCOPE
Just wanted to let Josh know as well as anyone who may be having this issue after pulling the numbers from the screenshot
Also don't forget to restart the DHCP server after making this edit and then running IPCONFIG /renew on CLIENT1
Great video btw - was a fun lab to complete
thanks so much for your comment
was trying to figure out what went wrong
Hey Josh, great video; I've spent most of the morning following along :). There is an issue with the github link. I think it was inadvently truncated as it's missing the "archive/master.zip" part . as you know, it's needed for the viewer to copy and paste and to follow along as described in the video.
Thank you mhatfie!
THANK YOU @mhatfie!!! I could not figure this part out!! And the link isn't listed anywhere else.
Thank you for breaking down down Active Directory like this Josh!
The entire tutorial was simple and easy to follow!
I'm super happy to hear that! Thank you for letting me know!
Just finished the Active Directory course in htb and this is a great opportunity to practice what I learned. Thank u 🙏
Just completed this hands on Lab. Simplete to follow along but takes time 😄
Thank you so much for your dedication in providing this high quality content.
Appreciate your work Josh
First of all, the lab is awesome and the video is very well explained! Quick question: in my lab everything is working properly, but when i get the windows client , it doesnt connect to internet. It get its IP address from DHCP as expected, i can even ping Internal network interface and internet interface of Domain Controller from the Windows client , but it simply doesn't seem to get connected. Any clues what could be causing this? Thanks
Hey Bruno, glad you like the video! This has happened to a bunch of other viewers (you can probably see it in the comments). Usually it's either,
A) RAS/NAT failed to setup properly for some reason--not your fault, but windows server seems to mess this up. In which case you should re-install the RAS role and setup NAT again. Or,
B) The client doesn't actually have DNS configured. This happens sometimes, so just go into the clients network adapter and make sure everything is set to automatic.
Good luck! And if it fails, check out the other comments hehe. Thanks again for watching :)
Thanks for the great tutorial Josh. I loved that powershell script- the fact that you could set the colour to cyan made it that much more fun to execute, definitely going to start looking into powershell and seeing what else I can do with it.
I'm stuck on one thing though, my client cant browse the web. My DC can browse the web and can ping my client at 172.16.0.100. My client can ping 8.8.8.8 and 172.16.0.1. ipconfig on the clients internal adapter shows everything is in order. I've reinstalled my DNS and RAS/NAT roles. I don't know what else I can do but I just can't get my client to browse web pages. Any quick ideas? Don't need super detail in the comments I'm just lost. Going to start all over again in the mean time to see if the problem reoccurs before coming back to attempt a fix.
Ok so I set the clients adapter alternate DNS server to 8.8.8.8 and now I can browse the internet. So there's still a dns issue but the NAT is working and allowing me to browse the internet?
Not sure if this counts as a win but it's working lol
Alright finally I added 8.8.8.8 as a forwarder in DNS Manager on my server. Now I can ipconfig/release and ipconfig/renew, and my DHCP connects me to my DNS server as it should which then gives me internet access. Not sure if this is a cheeky workaround but it seems legit to me. :)
Hey! Great job figuring things out. It's kinda hard to explain, but this is what I was thinking...
Since you could ping 8.8.8.8, that means your RAS and NAT was working just fine. At this point, I kind of suspected the DNS settings on your clients was messed up somehow. Ideally, the DNS on your clients should point to your Domain Controller IP address. Anything your DC can't resolve, it will use the Root Hints Servers that are automatically installed. Of course, if you set your clients to use DNS 8.8.8.8, they can browse the internet, but you won't be able to resolve other computers in the domain, since 8.8.8.8 doesn't know about your local domain.
It SOUNDS like what you did was correct, since the clients are actually using your DC, and your DC is using an External DNS server for outside requests. I wouldn't have thought to do this, but it looks like it's working, so great job haha.
I'm glad the lab was useful!
One of the best and educative IT HANDS-ON TUTORIALS I have watched this period. Thank you for this great job
Thanks. One of the most well made tutorials I've come across. Great in depth knowlegde
Hey yall. if anyones page is looking different when you try to download windows 10 iso or its not just allowing you to do so.
left click and choose inspect option. then switch to Mobile view/ ctrl + shift + M .
Then refresh the page then you will be seeing what Josh saw. continue and download. if you feel like browser download speed is slow.
when it asked either 64 bit or 32 bit change back to normal desktop view. right click on the 64/32 bit button choose "copy clean link"
then open up either Free Download Manager or whatever Torrent you use and simple paste to download it at maximum speed. Adios
u...are a lifesaver that is so smart
Hey Josh! Amazing video - unfortunately, I can't pass adding the users :(
Powershell gives me the error message 'Directory object not found'. I have played around with the scrpt (changing ou to cn on path), I have even redone my steps, so not sure what is wrong ...
I'm Having a similar issue and I have done all of these steps she has suggested.
I figured it out you have to type the entire thing no exceptions from the c drive to the AD_PS-Master file to the script itself.
Just went through this. Very nice! I appreciate the PS explanation. I really enjoyed the tutorial. I'm going to run through this several times. Thanks man.
Fantastic Video - thank you for putting in the time to share your knowledge
I checked the network adapter settings for the client and it was already set to obtain automatically. Went to CMD to ping 8.8.8.8 and request timed out with 100 % packet loss
Interesting. Can you ping 8.8.8.8 from the domain controller even?
@@JoshMadakor Yes i can ping from the controller with no problems
Handsome squidward lookinass boi
Another absolute banger video Josh, thank you for the help!
Hi Josh, It was a great learning experience. I am currently looking for help desk positions and had to learn AD and get practice going. I loved it thanks for all the detailed info. because of you i now have a working AD to play with and configure further.
Cool video Josh, it was fun to follow along
Great video - very informative and well done. I appreciate you taking the time to make this for us! Thank you :)
Excellent tutorial mate, please keep uploading server stuffs!
Thank you so much, Josh! I've been trying to setup a home lab for the past 3 months. Your video really helped!
Amazing!! Thank goodness haha
Just after the entire video itself, the “creting user” part was my favorite. The part where you chuckle, I felt that deeply.
Great video! It was helpful and well made. Listened to once on the bus and once at home and I was able to set up the lab. Thanks!!
lmao. Thank you so much for watching. really glad it was helpful :)
Awesome Video Josh! Haven't used AD for over 6 mos. Great refresher. Saving that script for future use.
Glad it was helpful!!! Thanks for watchin!
I enjoyed this turorial! I'm glad I created my first AD Homelab :) Thank you for this!
This is the best tutorial ever. Thank you Josh
Thanks for the help. After all these years I'm finally able to study active directory using my own lab
This was so easy to understand and follow. I'm trying to get my first job and a lot of employer wants A.D as a skillset or even required this video help me a lot. Thank you
Thank you Josh for the awesome explanation for creating a homelab for AD and users with the PowerShell .Also the Azure Sentinel-Honeypot Lab was great which helped me a lot while I was doing SC200 . Your contents are great !
Thanks so much! I'm glad you found the labs useful! I'll def release some more in the future
Wow! it was mind-blowing, thank you for sharing such high-level corporate Network skills
Thank you for this video Josh. This was extremely helpful for me. Being able to create a company domain and get to fool around with it has been more helpful experience than working as a help desk tech....
Thank you so much, this is brilliant. I have a sysadmin interview but havent done much server creation/management/AD account creation. You made a perfect video in great order, thank you once again!
Heck yeah, glad it came in handy :), Best of luck with your interview!
THis is brilliant Josh, really appreciate this!!!
thanks josh for this i had to use it to create a lab myself following your instructions although i got into some hitches but eventually figured it out, this was so helpful thanks again, am going for more of your cybersecurity projects that would look good on my resume.
Thank you so much for this video. Never seen a video so well explained and easy to follow along. Definitely subscribing.
Hey Michael, REALLY appreciate the sub, thank you! I'm glad it was easy to follow!!
This video was very helpful and insightful. Thank you for the various breakdowns and having the text quality sharp enough for us to read. I was able to follow along even through using a different VM software.
Hey man, want to thank you for this awesome video, it helped me a lot to understand AD and setup my LAB. THANKS!
Fricken Awesome!! Thank you so much for taking the time!
you are the best ever explained ADI cant thank you enough
thank you, I appreciate all the help with setting up a home lab. You're awesome
Thank you! Seemed like I was doing this in the Office, very real.
Thank you soo much! Going into an interview soon and really needed a crash-course on this
No problem! Hope you get it!