You have a hybrid deployment of Exchange Server 2013 and Microsoft Office 365. The
network does not have Active Directory Federation Services (AD FS) 2.0 installed. A user
named User1 reports that he cannot access his mailbox because his account is locked out.
You verify that the mailbox of User2 is hosted on Office 365. You need to unlock the account
of User1. Which cmdlet should you run?
A.
Set-MailUser
B.
Set-MSolUser
C.
Set-Mailbox
D.
Set-ADUser
Use the cmdlet Set-MsolUser to lock or unlock a user, and here are two examples.
To block a user account:
Set-MsolUser –UserPrincipalName user@yourdomain –blockcredential $true
To unlock a user accout:
Set-MsolUser -UserPrincipalName user@yourdomain –blockcredential $false