Exam4Training

Which cmdlet should you run?

Your network contains an Active Directory forest named contoso.com. The forest contains a single domain. The domain contains two domain controllers named DC1 and DC2 that run Windows Server 2012 R2. The domain contains a user named User1 and a global security group named Group1. User1 logs on to a client computer named Computer1. You need to disable the computer account of Computer1.

Which cmdlet should you run?
A . Add-AdPrincipalGroupMember.hip
B . Install-AddsDomainController
C . Install WindowsFeature
D . Install AddsDomain
E . Roname-AdObject
F . Set-AdAccountControl
G . Set-AdGroup
H . Set-User

Answer: F

Explanation:

Set-ADAccountControl Enabled

Specifies if an account is enabled. An enabled account requires a password. This parameter sets the Enabled property for an account object. This parameter also sets the ADS_UF_ACCOUNTDISABLE flag of the Active Directory User Account Control (UAC) attribute. Possible values for this parameter include:

$false or 0

$true or 1

The following example shows how to set this parameter to enable the account.

-Enabled $true

Exit mobile version