PrepAway - Latest Free Exam Questions & Answers

Which Windows PowerShell cmdlet should you run?

You are the Office 365 administrator for your company. A user named User1 from a partner organization is permitted to sign in and use the Office 365 services.
User1 reports that the password expires in ten days. You must set the password to never expire. Changes must NOT impact any other accounts.
You need to update the password policy for the user.
Which Windows PowerShell cmdlet should you run?

PrepAway - Latest Free Exam Questions & Answers

A.
Set-MsolPasswordPolicy

B.
Set-MsolPartnerlnformation

C.
Set-MsolUser

D.
Set-MsolUserPassword

Explanation:

https://msdn.microsoft.com/en-us/library/azure/dn194136.aspx

7 Comments on “Which Windows PowerShell cmdlet should you run?

  1. Jerry says:

    C is correct as there is no -PasswordNeverExpires in set-MsoluserPassword command

    SYNTAX
    Set-MsolUserPassword -ObjectId [-ForceChangePassword ] [-NewPassword ] [-TenantId ] []

    Set-MsolUserPassword -UserPrincipalName [-ForceChangePassword ] [-NewPassword ] [-TenantId ] []

    DESCRIPTION
    The Set-MsolUserPassword cmdlet is used to change the password of a user. This cmdlet can only be used for users with standard identities.




    0



    0
    1. startbucks says:

      you are wrong i tested it in my environment. i was able to update the password of 1 user using Set-MsolUser -UserPrincipalName **user1 email account** -PasswordNeverExpires $true




      0



      0

Leave a Reply