You have an Office 365 subscription that contains 500 user accounts.
None of the Office 365 users are forced to use a strong password.
You need to force all of the users to use a strong password.
Which cmdlet should you use?
A.
Set-ADUser
B.
Set-MsolUser
C.
Set-MsolUserPassword
D.
Set-MsolPasswordPolicy
Explanation:
Force the users to use a strong password with the Set-MSOlUser cmdlet.
https://blogs.technet.microsoft.com/heyscriptingguy/2014/08/05/use-powershell-to-force-office-365-
online-users-to-change-passwords/
https://docs.microsoft.com/en-us/powershell/module/msonline/set-msoluser?view=azureadps-1.0
set-Msoluser -strongPasswordRequired
why not answer C? Since you have to apply for the whole domain, in previous questions we mentioned Set-MsolPasswordPolicy
Set-msolPasswordPolicy only has -Notificationdays and -ValidityPeriod Parameters therefore C cant be the answer but B cos it has -StrongPasswordRequired parameter