What should you do?

Your network contains an Active Directory forest named contoso.com.
Your company plans to hire 500 temporary employees for a project that will last 90 days.
You create a new user account for each employee. An organizational unit (OU) named Temp contains the user accounts for the employees.
You need to prevent the new users from accessing any of the resources in the domain after 90 days.
What should you do?
A. Run the Get-ADOrganizationalUnit cmdlet and pipe the output to the Set-Date cmdlet.
B. Run the Get-ADOrganizationalUnit cmdlet and pipe the output to the Set-ADAccountPassword cmdlet.
C. Run the Get-ADUser cmdlet and pipe the output to the Set-ADAccountExpiration cmdlet.
D. Create a Group Policy object (GPO) and link the GPO to the Temp OU. Modify the Account Lockout Policy of the GPO.

microsoft-exams

One thought on “What should you do?

  1. 79given answer C. Run the Get-ADUser cmdlet and pipe the output to the Set-ADAccountExpiration cmdlet is correct.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.