How should you complete the relevant Windows PowerShell command?

Posted by: Pdfprep Category: 70-346 Tags: , ,

DRAG DROP

A company has 50 employees that use Office 365.

You need to enforce password complexity requirements for all accounts.

How should you complete the relevant Windows PowerShell command? To answer, drag the appropriate Windows PowerShell segment to the correct location in the answer area. Each Windows PowerShell segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Answer:

Explanation:

We use Get CMsolUser to get all users. We then enforce strong password complexity to each of these users through StrongPassWordRequired parameter of the Set CMsolUser command. The output of get command is used in the set command through the concatenating function (the symbol |).

Box 1: -MsolUser

The Get-MsolUser cmdlet can be used to retrieve an individual user, or list of users. An individual user will be retrieved if the ObjectId or UserPrincipalName parameter is used.

Box 2: MsolUser

The Set-MsolUser cmdlet is used to update a user object. This cmdlet should be used for basic properties only.

Parameter: -StrongPasswordRequired <Boolean>

Sets whether or not the user requires a strong password.

Leave a Reply

Your email address will not be published.