How should you complete the relevant Windows PowerShell command?

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 or locations. 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.

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 or locations. 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:



Leave a Reply 13

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


João Silva

João Silva

Wrong. The -NewPassword option also requires the user to reset the password in the next login.

“This command resets the password for [email protected]. The user will be required to reset the password on next sign in.” – https://docs.microsoft.com/en-us/powershell/msonline/v1/Set-MsolUserPassword?redirectedfrom=msdn

Regarding that we must assume the answer with less administrative impact, the new password will require less, because it is the same password, not requiring that the administrator communicates a different password for each user.

João Silva

João Silva

get-msoluser | Set-MsolUserPassword -ForceChangePassword $true
Taqa9920
Yaso5279
Loxa5202
Data4800
Xuza4718
Mobu8712
Voja5266
Jopu8126
Dodu9064
Kosa6032
Dozo5103
Kacu0513
Cova0730
Buba5347
Wota4765
Kuku9637
Lupu1394
Faga8737
Qoja3548
Puku4663
Saho5091
Tadu1949
Sazo2899
Gaku2742
Ruku0040
Quga2619
Loyu5792
Hucu0712
Juno3593
Koco9197
Tanu8568
Lozo6973

get-msoluser | Set-MsolUserPassword -NewPassword pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1
pass@word1

Alison

Alison

Also it says you must reset the password for all of the employees in your company and require them to change it on next login. If you just use -ForceChangePassword $true then you are not resetting the password but only doing the requiring them to change it bit.
So it’s get-msoluser | Set-MsolUserPassword -NewPassword pass@word1 as stated by João Silva

Vietnam

Vietnam

Actually you are changing the password. If you do not specify any parameter, it will auto generate password.

By default the -ForceChangePassword is set to $true so you could use only Set-msoluserpassword without any additional parameters, and get list of passwords, which then you´d have to distribute etc. So -newpassword parameter is correct as all users will have to change to a new password anyways.

WallkerPF

WallkerPF

True. The -ForceChangePassword $True will change the user password immediately. This new password is a OneTime password, so the user has to change it when he logs in after this command is executed.
This is the right answer.

Marty

Marty

Agree. See this MSFT article: https://docs.microsoft.com/en-us/powershell/msonline/v1/Set-MsolUserPassword?redirectedfrom=msdn

Parameters
-ForceChangePassword

Indicates whether the user must change the password the next time they sign in.

Type: Boolean
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)

NR

NR

Actually if you read Example 1 (using the ForceChangePassword parameter) and Example 2 (using the NewPassword parameter) on the supplied link, it says loud and clear that both reset the password and force the user to change their password at next logon. Thus both these answers are valid solutions. This question is malformed.

Mart Bodde

Mart Bodde

Passed 70-346 exam last week! 930/1000 points!

Lots of questions regarding ADFS 3.0 and related powershell commands.

And, there were lot of Yes/No questions and Case studies in my actual 70-346 test.

Many new questions about monitoring, managing, provisionning.

…etc.

I do recommend you to read entire books and learn valid 70-346 dumps here: http://www.passleader.com/70-346.html (203Q), all new questions are available in it now!

Mart Bodde

Mart Bodde

By the way, part of that 203Q 70-346 dumps can be downloaded for free here:

https://doc.co/sFn6M5

Best Regards!

Xavier

Xavier

Using the following command will reset a user’s password with a pre-defined password and not require the user to change the password:

Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword -ForceChangePassword $False

This command will set a temporary password and force a user to change their password at next log on:

Set-MsolUserPassword –UserPrincipalName –NewPassword -ForceChangePassword $True

It appears the ‘ForceChangePassword $True’ parameter is needed to force a user to change the password otherwise they can continue to use the password assigned when it was changed.