exam questions

Exam 70-742 All Questions

View all questions & answers for the 70-742 exam

Exam 70-742 topic 1 question 5 discussion

Actual exam question from Microsoft's 70-742
Question #: 5
Topic #: 1
[All 70-742 Questions]

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-ADUser cmdlet and pipe the output to the Set-ADUser cmdlet.
  • B. Create a group that contains all of the users in the Temp OU. Create a Password Setting object (PSO) for the new group.
  • C. Create a Group Policy object (GPO) and link the GPO to the Temp OU. Modify the Password Policy settings of the GPO.
  • D. Run the Get-ADOrganizationalUnit cmdlet and pipe the output to the Set-Date cmdlet.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
TMW
Highly Voted 5 years, 9 months ago
this one is correct: Get-ADUser -Filter * -SearchBase "OU=temp,DC=contoso,DC=com" | set-aduser -AccountExpirationDate 9/5/2019
upvoted 27 times
...
coleman
Highly Voted 5 years, 6 months ago
Run the Get-ADUser cmdlet and pipe the output to the Set-ADAccountExpiration cmdlet.
upvoted 6 times
V1980
4 years, 6 months ago
That isn't an answer here - you should know better!
upvoted 3 times
Dejvoch
4 years, 5 months ago
it is not, but it is always good to know anything more on top. TMW's & Coleman's both are correct in reality, for this question TMW's is right
upvoted 1 times
...
...
...
yesboet
Most Recent 4 years, 7 months ago
A. Run the Get-ADUser cmdlet and pipe the output to the Set-ADUser cmdlet.
upvoted 2 times
...
Kamikazekiller
4 years, 11 months ago
Answer is: A. Run the Get-ADUser cmdlet and pipe the output to the Set-ADUser cmdlet.
upvoted 3 times
...
Justin0020
5 years, 2 months ago
Answer A is right, see the explanation of TMW
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...