Which two Windows PowerShell commands should you run? (Each correct answer presents part of the solution, choose two

You install an Active Directory domain in a test environment.

You need to reset the passwords of all the user accounts in the domain from a domain controller.

Which two Windows PowerShell commands should you run? (Each correct answer presents part of the solution, choose two.)

You install an Active Directory domain in a test environment.

You need to reset the passwords of all the user accounts in the domain from a domain controller.

Which two Windows PowerShell commands should you run? (Each correct answer presents part of the solution, choose two.)

A.
$ newPassword = *

B.
Import-Module ActiveDirectory

C.
Import-Module WebAdministration

D.
Get- AdUser -filter * | Set- ADAccountPossword – NewPassword $ newPassword – Reset

E.
Set- ADAccountPossword – NewPassword – Reset

F.
$ newPassword = (Read-Host – Prompt “New Password” – AsSecureString )

G.
Import-Module ServerManager



Leave a Reply 5

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


Baboo

Baboo

Sorry misktake it is D and F

ed

ed

I think it should be B and D and F because you must import activedirectory module first. Check the link that Baboo listed.

Dan

Dan

I agree with Ed. B will import the necessary PS module. F will prompt for a password and store it as a secure string. D will search active directory for all user accounts and then apply the password to each account.

Example 4 covers this questions:

http://technet.microsoft.com/en-us/library/ee617261.aspx