Which Windows PowerShell cmdlet should you run?

A company has an Office 365 tenant that has an Enterprise E1 subscription.
You Active Dsynchronize disabled user accounts from anirectory 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-MsolUser1icense
D. Set-MsolUserPrincipalName
E. Convert-MsolFederatedUser
F. Set-MailUser
G. Set-LinkedUser
H. New-MsolUser

microsoft-exams

One thought on “Which Windows PowerShell cmdlet should you run?

  1. The correct answer is A.

    The Set-MsolUser cmdlet is used toupdate 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 -TypeName Microsoft.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 *


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