0%

0/1 Lessons

Course Introduction

• 1min

0 / 1 lessons complete

Getting Started with Active Directory Domain Services

• 52min

0 / 6 lessons complete

Introduction to Active Directory Users & Computers

• 1hr 27min

0 / 10 lessons complete

Adding a Second Domain Controller

• 1hr 31min

0 / 7 lessons complete

Active Directory Backups

• 1hr 24min

0 / 5 lessons complete

How to Administrate Active Directory with Windows PowerShell

• 1hr 58min

0 / 7 lessons complete

Administrating AD SS (Active Directory Sites and Services)

• 1hr 3min

0 / 5 lessons complete

Active Directory Trusts

• 54min

0 / 5 lessons complete

Modifying the Active Directory Schema

• 43min

0 / 3 lessons complete

Course Conclusion

• 2min

0 / 1 lessons complete

Lab: ADUC PowerShell Automation

Instructions

Q&A (0)

Notes (0)

Resources (0)

Saving Progress...

Resources

There are no resources for this lesson.

Notes can be saved and accessed anywhere in the course. They also double as bookmarks so you can quickly review important lesson material.

Create note

3.7 3 votes
Lesson Rating
Subscribe
Notify of
profile avatar
29 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

profile avatar
Eric Gonzales(@eric-gonzales)
Member
1 year ago

The .CSV file’s OU is pointing to Instructor Paul. Must update the OU path within the .CSV file.

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  Eric Gonzales
1 year ago

Thank you profile avatar Eric Gonzales for posting.
We will be updating the file.

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  Eric Gonzales
1 year ago

The CSV file on the Desktop has been updated to match the OU path.
Thanks for the feedback.

profile avatar
jamese(@jamese)
Member
1 year ago

I’m trying the PowerShell lab and the first question about “Set PowerShell Script Execution Policy to Unrestricted” is already set to “Not Configured” in both places. Am I missing something???

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  jamese
1 year ago

Hi profile avatar James Estrella
It is just to practice setting the execution policy to something other than not configured.
Ricardo.

profile avatar
jamese(@jamese)
Member
1 year ago

My “Hello World” Script is running even when saved to the C Drive

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  jamese
1 year ago

That’s ok, you can execute any other scripts if you like in the lab.

profile avatar
jamese(@jamese)
Member
1 year ago

The first ? in the lab. My “Turn on Script Execution” is set to Not configured on both. Is there something I’m missing??

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  jamese
1 year ago

No, there’s nothing you’re missing profile avatar James Estrella that’s how it is in the lab.

profile avatar
nathans2(@nathans2)
Member
Reply to  Ricardo P
1 year ago

It happened to me too. When you open the Lab in the AD “Turn on Script Execution” is already set to “Not configured” on both computer and user configuration therefore it defeats the lab practice question which ask the student to again set them to “Not Configured’. I think the Lab should have “enabled/disabled” it so that we (students) can set them to “Not Configured” in order to get our score.

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  nathans2
1 year ago

Hi profile avatar Nathan Sackey

That’s correct, we missed that part. We have updated the lab to reflect them as configured when doing rsop.msc. Check it out again and do let us know if you have any issues with it.

Ricardo

profile avatar
victoriav(@victoriav)
Member
1 year ago

how to install rsop.msc?

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  victoriav
1 year ago

Hi profile avatar Victoria Vyedina

rsop.msc is part of the Windows server operating system. It should show up if you type in the search box rsop.msc.

profile avatar
pavelz(@pavelz)
Member
1 year ago

Hello. I can’t access the lab — no connection can be established. Can you please help?

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  pavelz
1 year ago

Hi profile avatar Pavel Zarva

We have checked the lab and seem to be online. Can you try again? If you have an issue please post a screenshot.

Ricardo

profile avatar
jjmm(@kelmend-pellumbi)
Member
1 year ago

Hello
The first task, Set PowerShell Script Execution Policy to Unrestricted, I follow the instructions (rsop.msc, etc) but after clicking on administrative templates then clicking on Windows Components, there isn’t a PowerShell choice, only a windows update

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  jjmm
1 year ago

Hi profile avatar Jjmm

We have seen your comment and have updated the lab to reflect the changes in rsop.msc. Please try it again and do let us know if you have any issues.

Ricardo

profile avatar
josem4(@josem4)
Member
1 year ago
  1. ADUC PowerShell Automation Use this lab to practice your Active Directory Users and Computers automation skills with Windows PowerShell. Set PowerShell Script Execution Policy to Unrestricted List AD Users with a PowerShell script in 2 lines of code and save to C:\Users\Administrator\Desktop\ListUsers.ps1 Write a PowerShell Script to Create AD User Accounts from a CSV file located on the Desktop and save to C:\Users\Administrator\Desktop\CreateUsers.ps1 Disable some user accounts using Active Directory Users and Computers Use PowerShell to move those users to a disabled users OU Open IT Lab
  2. [
  3. 6:00 AM
  4. ]
  5. I have tried to complete this lab multiple times but righ now I am having trouble with the BOLDED section above. I have try multiple times and I think that I am doing everything right. It appears to me that I have follow all steps but I can not get a green on the lab tester.
profile avatar
Ricardo P(@ricardop)
Admin
Reply to  josem4
1 year ago

Hi profile avatar Jose Mattey

In this step, the task is to create a new PowerShell script based on the Creating User Accounts lesson from a CSV (Comma Separated Value) File. The CSV file to use is the one on the desktop. The new script should be stored on C:\Users\Administrator\Desktop\ with the name of CreateUsers.ps1. The step also checks the file size to be 1100KB or less.
In summary, the evaluation script checks for the name and location of the ps1 file and if it is less than 1100KB.

Let us know if there’s any issue with this step to review it.

Ricardo

profile avatar
aarons3(@aarons3)
Member
10 months ago

Not sure what Im doing wrong. On the first lab task I created the ListUsers.ps1…put it in the correct place and it worked. Continued to tell me that it wasnt created in the correct place.Not really sure what I did. Had some other people look at it and they thought everything looked correct. Any tricks Im missing?

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  aarons3
10 months ago

Hi profile avatar Aaron Salazar

The first evaluation step is looking for the ListUsers.ps1 file script under C:\Users\Administrator\Desktop\. It doesn’t matter the case but should be named ListUsers.ps1, otherwise the evaluation fails. Also, it can fail if it has an extension like ListUsers.ps1.txt in case the extension is hidden by the OS it might be misleading and show ListUsers.ps1.

Ricardo

profile avatar
Yusef(@mister-lewis)
Member
10 months ago

I wasn’t able to find the “Disable User” option in Active Directory.

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  Yusef
10 months ago

Hi profile avatar Mister Lewis

Just select the user account and right-click it and select Disable Account.

Ricardo

profile avatar
horstb(@horstb)
Member
9 months ago

Unfortunately I have many problems with this lab. First no iso was inserted then the problem was solved. The next problem is that the lab just freezes after 20 minutes.

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  horstb
9 months ago

Hi profile avatar Horst Bornschein-Grolms

I understand what you mean, this lab is quite challenging, but I see you’ve completed it.

Not sure why the lab froze on you, but restarting the virtual machine can make it work. You are right the ISO is not inserted into the virtual machine. If you still need help do let us know.

Thanks for reporting your issues.

Ricardo

profile avatar
Jmorrow(@jasonm2)
Member
2 months ago

Hi, I was only given 30 minutes which was not enough time because I had to debug some issues and only got one 15 minute extension which again was not enough time. Please give us more time and more extensions to figure this lab out.

profile avatar
Ricardo P(@ricardop)
Admin
Reply to  Jmorrow
2 months ago

Hi profile avatar Jmorrow

We have extended 15 minutes on the time for you to complete the lab.

Ricardo

profile avatar
emmanuela2(@emmanuela2)
Member
1 month ago

Hello, I am really struggling with the lab work:

Write a PowerShell Script to Create AD User Accounts from a CSV file located on the Desktop and save to C:\Users\Administrator\Desktop\CreateUsers.ps1

What Am I exactly to do? On following the instructions and pressing the Play button to execute the script as in an example screenshot below, I am to enter the CSV file that contains the new user accounts.

When I enter the file path which I believe is C:\Users\Administrator\Destop\NewUsers-1551728379489,the script should execute for instance, and am getting error attached.

Is it just enough to write the script and save C:\Users\Administrator\Desktop\CreateUsers.ps1 which I have tried and I got it correct but no users were created in Active Directory.

Any help to get over this taks?

Screenshot-2024-03-04-224330
profile avatar
Ricardo P(@ricardop)
Admin
Reply to  emmanuela2
1 month ago

Hi profile avatar Emmanuela2

Basically create the script to create the users which are on the file. It is basically taken from the lesson Creating User Accounts from a CSV (Comma Separated Value) File. You can start building the script step by step as described there on the lesson.

Ricardo