Microsoft 70-346 Exam

Which Windows PowerShell cmdlet should you run?

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in the question apply only to that question.
A company has an Office 365 tenant that has an Enterprise E1 subscription. You synchronize disabled user accounts from an Active Directory Domain Services environment.
You need to enable the user accounts in Office 365.
Which Windows PowerShell cmdlet should you run?

  • A. Set-MsolUser
  • B. Redo-MsolProvisionUser
  • C. Set-MsolUserLicense
  • D. Set-MsolUserPrincipalName
  • E. Convert-MsolFederatedUser
  • F. Set-MailUser
  • G. Set-LinkedUser
  • H. New-MsolUser
Answer: Option A.
Explanation: 

The Set-MsolUser cmdlet is used to update a user object. This cmdlet should be used for basic properties only.
Example: The following command sets the multi-factor authentication on this user.
Enable a user:
$st = New-Object -TypeNameMicrosoft.Online.Administration.StrongAuthenticationRequirement
$st.RelyingParty = “*”
$st.State = “Enabled”
$sta = @($st)
Set-MsolUser -UserPrincipalName [email protected] -StrongAuthenticationRequirements $sta

Leave a Reply

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

Check Also
Close
Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker
error: Alert: Content is protected !!